Skip to content

Total Sales of Top 3 Best Selling Sales People

>> Download the sample (Power BI)

This sample shows who the top 3 sales people are,

(i) By sales

for each region and product.

Total Sales =
SUMX ( Sales_Table, Sales_Table[Unit Price] * Sales_Table[Quantity] )

Total Sales of Top 3 Best Selling Sales People

Section titled “Total Sales of Top 3 Best Selling Sales People”
Total Sales of Top 3 Best Selling Sales People =
VAR RankingContext =
VALUES ( SalesPerson_Table[Sales Person] )
RETURN
CALCULATE (
[Total Sales],
TOPN ( 3, ALL ( SalesPerson_Table[Sales Person] ), [Total Sales] ),
RankingContext
)
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 )
)