Skip to content

Sales - Scenario Analysis

>> Download the sample (Power BI)

This sample shows how to determine the effect on total portfolio sales of:

(i) Increasing the price of a selection of products, by a specific percentage amount

% Change w/Pricing Scenario =
DIVIDE ( [Additional Revenue], [All Sales], 0 )
Additional Revenue =
[Selected Scenario Sales] - [All Sales]
All Sales =
CALCULATE ( [Total Sales], ALL ( Products_Table ) )
Pricing Scenario =
IF (
HASONEVALUE ( 'Percent Price Change'[Price Change] ),
VALUES ( 'Percent Price Change'[Price Change] ),
0
)
Scenario Sales =
SUMX (
Sales_Table,
( Sales_Table[Unit Price] * ( 1 + [Pricing Scenario] ) ) * Sales_Table[Quantity]
)
Selected Sales =
CALCULATE ( [Total Sales], ALLSELECTED ( Products_Table ) )
Selected Scenario Sales =
[All Sales] - [Selected Sales] + [Scenario Sales]
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 )
)