Introduction
This week’s challenge builds on last weeks challenge to utilise updated column fill and data labelling features from the Power BI December 2023 release.
The challenge will be to create a stacked bridge chart using the core column and line combo chart.
Building the bridge will require calculated tables. Intermediate users can use the sales values from the sample semantic model to build a bridge with positive values. Advanced users can try their hand at building a bridge with profit values from the sample semantic model to account for positive and negative values.
Requirements
Power BI Desktop
- Obtain the sample semantic model from a New Power BI file, or obtain the sample from Excel here
- Add the combo chart to the canvas
- Create a calculated table that summarises the Categories to be used along the Category axis of your Bridge chart and append a total row. Place the Categories field of the calculated table in the X-Value field well.
For example :
- Create a calculated table that summarises the Series to be used for your stacked columns and append a cumulative total row. Place the series field of the calculated table in the Y-Value field well.
- Create a measure that calculates sales by category except the total category
- Create a measure that calculates the cumulative total for all categories except the total category, subtract the current category sales (2) from the cumulative
- Create a measure that calculates the sales by category, and for the total category calculates the grand total sum of sales for all shown categories.
- Create a measure that calculates the cumulative (2) for series cumulative row and sales across all categories (4) for the remaining series. Place this measure in the Y-Value field well.
- Create a measure that calculates the cumulative total for all categories. Place this in the line field well
- Set the Cumulative Total series column fill to transparent
- Add data labels
Dataset
The dataset this week can be obtained here: https://learn.microsoft.com/en-us/power-bi/create-reports/sample-financial-download
Share
After you finish your workout, share on Twitter using the hashtags #WOW2024 and #PowerBI, and tag @MMarie, @shan_gsd, @KerryKolosko. Also make sure to fill out the Submission Tracker so that we can count you as a participant this week in order to track our participation throughout the year
Solution
Solution File available for download via Data Stories Gallery