>> 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.
Dashboard - Snippet
Section titled “Dashboard - Snippet”
Data Model - Snippet
Section titled “Data Model - Snippet”
Measures - Sales & Sales People
Section titled “Measures - Sales & Sales People”Name of Best Selling Sales Person
Section titled “Name of Best Selling Sales Person”Name of Best Selling Sales Person =CALCULATE ( SELECTEDVALUE ( SalesPerson_Table[Sales Person], TOPN ( 1, ALL ( SalesPerson_Table ), [Total Sales], DESC ) ))Total Sales
Section titled “Total Sales”Total Sales =SUMX ( Sales_Table, Sales_Table[Unit Price] * Sales_Table[Quantity] )Total Sales of Top Selling Sales Person
Section titled “Total Sales of Top Selling Sales Person”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 )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 ))