Skip to content

Total Sales from Top 1 Selling Sales Person as a Percentage of Total Sales

>> Download the sample (Power BI)

This sample shows the Total Sales of the top-selling sales person as a percentage of Total Sales, by quarter and region.

Name of Best Selling Sales Person =
CALCULATE (
SELECTEDVALUE (
SalesPerson_Table[Sales Person],
TOPN ( 1, ALL ( SalesPerson_Table ), [Total Sales], DESC )
)
)
Total Sales =
SUMX ( Sales_Table, Sales_Table[Unit Price] * Sales_Table[Quantity] )
Total Sales of Top Selling Sales Person =
IF (
COUNTROWS (
TOPN (
1,
SUMMARIZE (
SalesPerson_Table,
SalesPerson_Table[Sales Person],
"Sales Amount", [Total Sales]
),
[Sales Amount]
)
)
<= 1,
SUMX (
TOPN (
1,
SUMMARIZE (
SalesPerson_Table,
SalesPerson_Table[Sales Person],
"Sales Amount", [Total Sales]
),
[Sales Amount]
),
[Total Sales]
),
SUMX (
TOPN (
1,
SUMMARIZE (
SalesPerson_Table,
SalesPerson_Table[Sales Person],
"Sales Amount", [Total Sales]
),
[Sales Amount]
),
[Total Sales]
)
/ COUNTROWS (
TOPN (
1,
SUMMARIZE (
SalesPerson_Table,
SalesPerson_Table[Sales Person],
"Sales Amount", [Total Sales]
),
[Sales Amount]
)
)
)

Total Sales of Top Selling Sales Person as a % of Total Sales

Section titled “Total Sales of Top Selling Sales Person as a % of Total Sales”
Total Sales of Top Selling Sales Person as a % of Total Sales =
DIVIDE ( [Total Sales of Top Selling Sales Person], [Total Sales], 0 )
Calendar_Table =
GENERATE (
CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2019, 12, 31 ) ),
VAR currentDay = [Date]
VAR Day =
DAY ( currentDay )
VAR Month =
MONTH ( currentDay )
VAR Year =
YEAR ( currentDay )
RETURN
ROW ( "Day", day, "Month", month, "Year", year )
)