>> Download the sample (Power BI)
This sample compares, for each salesperson:
(i) The total sales of the top 3 best-selling salespeople, against
(ii) The average sales of the top 3 best-selling salespeople
It also shows, for each salesperson:
(i) The total sales of the top 2 best-selling products
(ii) The total sales of the top 2 best-selling products, as a % of total sales
(iii) The total number of sales transactions made
Dashboard - Snippet
Section titled “Dashboard - Snippet”
Data Model - Snippet
Section titled “Data Model - Snippet”
Measures - Sales, Sales People, & Products
Section titled “Measures - Sales, Sales People, & Products”% of Total Sales, of Top 2 Best Selling Products
Section titled “% of Total Sales, of Top 2 Best Selling Products”% of Total Sales, of Top 2 Best Selling Products =VAR Top2ProductSales = CALCULATE ( [Total Sales], TOPN ( 2, Products_Table, [Total Sales] ) )RETURN DIVIDE ( Top2ProductSales, [Total Sales], 0 )Average Sales of the Top 3 Best Selling Sales People
Section titled “Average Sales of the Top 3 Best Selling Sales People”Average Sales of the Top 3 Best Selling Sales People =AVERAGEX ( TOPN ( 3, ALL ( SalesPerson_Table[Sales Person] ), [Total Sales], DESC ), [Total Sales])Last Purchase Date (from selected dates)
Section titled “Last Purchase Date (from selected dates)”Last Purchase Date (from selected dates) =MAXX ( ALLSELECTED ( Sales_Table ), Sales_Table[Date] )Total Sales
Section titled “Total Sales”Total Sales =SUMX ( Sales_Table, Sales_Table[Unit Price] * Sales_Table[Quantity] )Total Sales of Top 2 Best Selling Products (when no Product Filter)
Section titled “Total Sales of Top 2 Best Selling Products (when no Product Filter)”Total Sales of Top 2 Best Selling Products (when no Product Filter) =CALCULATE ( [Total Sales], TOPN ( 2, Products_Table, [Total Sales] ) )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 )Total Transactions
Section titled “Total Transactions”Total Transactions =COUNTROWS ( Sales_Table )Tables
Section titled “Tables”Calendar_Table
Section titled “Calendar_Table”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 ))