>> Download the sample (Power BI)
This sample shows missed potential profit opportunities for each customer (based on the difference between the profit margin for a particular customer and the average profit margin across all customers).
Dashboard - Snippet
Section titled “Dashboard - Snippet”
Data Model - Snippet
Section titled “Data Model - Snippet”
Measures - Profit
Section titled “Measures - Profit”Margin Differential
Section titled “Margin Differential”Margin Differential =[Profit Margin (All Customers)] - [Profit Margin]Missing Profits
Section titled “Missing Profits”Missing Profits =[Margin Differential] * [Total Sales]Missing Profits as % Total Profits
Section titled “Missing Profits as % Total Profits”Missing Profits as % Total Profits =DIVIDE([Missing Profits], [Total Profits], 0)Profit Margin
Section titled “Profit Margin”Profit Margin =DIVIDE([Total Profits], [Total Sales], 0)Profit Margin (All Customers)
Section titled “Profit Margin (All Customers)”Profit Margin (All Customers) =CALCULATE ( [Profit Margin], ALL ( Customer_Table[Customer] ) )Total Costs
Section titled “Total Costs”Total Costs =SUMX ( Sales_Table, Sales_Table[Unit Cost] * Sales_Table[Quantity] )Total Profits
Section titled “Total Profits”Total Profits =[Total Sales] - [Total Costs]Total Sales
Section titled “Total Sales”Total Sales =SUMX ( Sales_Table, Sales_Table[Unit Price] * Sales_Table[Quantity] )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 ))