Skip to content

Profits - by Region, Product, Customer, and Sales Person

>> Download the sample (Power BI)

Profits – by Region, Product, Customer, and Sales Person

Section titled “Profits – by Region, Product, Customer, and Sales Person”

This sample shows profits by different dimensions, in this case by:

(i) Region,
(ii) Product,
(iii) Customer, and
(iv) Sales Person

Profit Margin =
DIVIDE ( [Total Profits], [Total Sales], 0 )
Total Costs =
SUMX ( Sales_Table, Sales_Table[Unit Cost] * Sales_Table[Quantity] )
Total Profits =
[Total Sales] - [Total Costs]
Total Sales =
SUMX ( Sales_Table, Sales_Table[Unit Price] * Sales_Table[Quantity] )
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 )
)