0
0
Power BIbi_tool~15 mins

Waterfall charts in Power BI - Real Business Scenario

Choose your learning style9 modes available
Scenario Mode
👤 Your Role: You are a financial analyst at a retail company.
📋 Request: Your manager wants to understand how different factors contributed to the change in net profit from last year to this year. They ask you to create a waterfall chart to visualize the step-by-step impact of revenue, costs, and expenses on net profit.
📊 Data: You have a dataset with the following columns: Category (Revenue, Cost of Goods Sold, Operating Expenses, Taxes, Net Profit), Amount (positive or negative values representing changes), and Year (Last Year, This Year).
🎯 Deliverable: Create a waterfall chart in Power BI that shows the starting net profit from last year, the positive and negative contributions of each category, and the final net profit for this year.
Progress0 / 4 steps
Sample Data
CategoryAmountYear
Net Profit50000Last Year
Revenue70000This Year
Cost of Goods Sold-30000This Year
Operating Expenses-15000This Year
Taxes-5000This Year
Net Profit70000This Year
1
Step 1: Filter the data to include only the 'Last Year' net profit and the 'This Year' categories except the final net profit.
Use Power BI filter pane to select Year = 'Last Year' and Category = 'Net Profit' OR Year = 'This Year' and Category <> 'Net Profit'.
Expected Result
Filtered data with starting net profit and all contributing categories for this year.
2
Step 2: Create a new calculated table to prepare data for the waterfall chart with columns: Category, Amount, and SortOrder.
Use DAX: WaterfallData = UNION( ROW("Category", "Starting Net Profit", "Amount", CALCULATE(SUM(Table[Amount]), Table[Year] = "Last Year", Table[Category] = "Net Profit"), "SortOrder", 1), ROW("Category", "Revenue", "Amount", CALCULATE(SUM(Table[Amount]), Table[Year] = "This Year", Table[Category] = "Revenue"), "SortOrder", 2), ROW("Category", "Cost of Goods Sold", "Amount", CALCULATE(SUM(Table[Amount]), Table[Year] = "This Year", Table[Category] = "Cost of Goods Sold"), "SortOrder", 3), ROW("Category", "Operating Expenses", "Amount", CALCULATE(SUM(Table[Amount]), Table[Year] = "This Year", Table[Category] = "Operating Expenses"), "SortOrder", 4), ROW("Category", "Taxes", "Amount", CALCULATE(SUM(Table[Amount]), Table[Year] = "This Year", Table[Category] = "Taxes"), "SortOrder", 5), ROW("Category", "Ending Net Profit", "Amount", CALCULATE(SUM(Table[Amount]), Table[Year] = "This Year", Table[Category] = "Net Profit"), "SortOrder", 6) )
Expected Result
A table with ordered categories and their amounts ready for the waterfall chart.
3
Step 3: Add the new calculated table as the data source for the waterfall chart visual in Power BI.
Insert Waterfall chart visual, set Category field to 'Category', set Y-axis to 'Amount', sort by 'SortOrder', and in the Format pane > Waterfall chart > Breakdown, set 'Starting Net Profit' and 'Ending Net Profit' to 'Total'.
Expected Result
Waterfall chart showing the starting net profit, positive and negative contributions, and ending net profit.
4
Step 4: Format the waterfall chart for clarity: add data labels, set colors for increases (green) and decreases (red), and add a chart title.
In visual formatting pane, enable data labels, set increase color to green, decrease color to red, and title to 'Net Profit Change Waterfall'.
Expected Result
Clear and visually distinct waterfall chart that is easy to interpret.
Final Result
Net Profit Change Waterfall

Starting Net Profit  |████████████████████| 50,000
Revenue             |███████████████████████████████| +70,000
Cost of Goods Sold  |███████████████           | -30,000
Operating Expenses  |█████████                 | -15,000
Taxes               |███                       | -5,000
Ending Net Profit   |██████████████████████████| 70,000
Net profit increased from 50,000 last year to 70,000 this year.
Revenue contributed a positive 70,000 increase.
Cost of Goods Sold, Operating Expenses, and Taxes reduced profit by 30,000, 15,000, and 5,000 respectively.
Overall, the company improved profitability despite costs.
Bonus Challenge

Create a dynamic waterfall chart that allows the user to select different years to compare net profit changes.

Show Hint
Use a slicer for Year selection and modify the calculated table to use selected years dynamically with DAX functions like SELECTEDVALUE.