>> Download the sample (Power BI)
This sample shows:
(i) Total sales by product
(ii) Total cumulative sales as a percentage of all sales
Dashboard - Snippet
Section titled “Dashboard - Snippet”
Data Model - Snippet
Section titled “Data Model - Snippet”
Measures - Sales
Section titled “Measures - Sales”All Sales
Section titled “All Sales”All Sales =CALCULATE ( [Total Sales], ALLSELECTED ( Sales_Table ) )Cumulative Total No Dates
Section titled “Cumulative Total No Dates”Cumulative Total No Dates =VAR ProductRev = [Total Sales]RETURN SUMX ( FILTER ( SUMMARIZE ( ALLSELECTED ( Sales_Table ), Sales_Table[Product], "Revenue", [Total Sales] ), [Revenue] >= ProductRev ), [Revenue] )Pareto Chart (Products)
Section titled “Pareto Chart (Products)”Pareto Chart (Products) =DIVIDE ( [Cumulative Total No Dates], [All Sales], 0 )Total Sales
Section titled “Total Sales”Total Sales =SUMX ( Sales_Table, Sales_Table[Quantity] * Sales_Table[Unit Price] )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 ))