>> Download the sample (Power BI)
Sales – Scenario Analysis
Section titled “Sales – Scenario Analysis”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
Dashboard - Snippet
Section titled “Dashboard - Snippet”
Data Model - Snippet
Section titled “Data Model - Snippet”
Measures - Actual & Scenario
Section titled “Measures - Actual & Scenario”% Change w/Pricing Scenario
Section titled “% Change w/Pricing Scenario”% Change w/Pricing Scenario =DIVIDE ( [Additional Revenue], [All Sales], 0 )Additional Revenue
Section titled “Additional Revenue”Additional Revenue =[Selected Scenario Sales] - [All Sales]All Sales
Section titled “All Sales”All Sales =CALCULATE ( [Total Sales], ALL ( Products_Table ) )Pricing Scenario
Section titled “Pricing Scenario”Pricing Scenario =IF ( HASONEVALUE ( 'Percent Price Change'[Price Change] ), VALUES ( 'Percent Price Change'[Price Change] ), 0)Scenario Sales
Section titled “Scenario Sales”Scenario Sales =SUMX ( Sales_Table, ( Sales_Table[Unit Price] * ( 1 + [Pricing Scenario] ) ) * Sales_Table[Quantity])Selected Sales
Section titled “Selected Sales”Selected Sales =CALCULATE ( [Total Sales], ALLSELECTED ( Products_Table ) )Selected Scenario Sales
Section titled “Selected Scenario Sales”Selected Scenario Sales =[All Sales] - [Selected Sales] + [Scenario Sales]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 ))