Forum Discussion
Waterfall Chart -Two Category
I have a table that contains information about demand, supply, and weekdays. Additionally, I have a measure that displays the current stock. My goal is to create a waterfall chart that shows the demand and supply values for each weekday. I have added the weekday field to the Category field, and the current stock measure to the Starting Value field. However, I am unsure of how to display two different values for each category.
5 Replies
- mtayyab07Frequent Visitor
Hi,
Creating a Waterfall Chart in Power BI for weekdays with both demand and supply categories is challenging since the standard chart handles only one measure per category. To address this, you can create a combined measure that allows for representation in a waterfall chart.
Please follow the following steps:- Select the Demand and Supply columns.
- Use the "Unpivot Columns" feature to transform these into two rows per weekday (one for demand and one for supply), resulting in a new attribute column (e.g., "Category" with values 'Demand' and 'Supply') and a value column.
- Create New Measure as follows
- Net Effect = SUM(Data[Supply]) - SUM(Data[Demand])
- From the Visualizations pane, select the Waterfall Chart icon.
- Axis (Category): Drag the Weekday field here.
- Values: Drag the Net Effect measure here.
- Optionally, adjust the colors and formatting to distinguish between positive and negative values (supply and demand).
- The Waterfall Chart will now display the net effect (supply minus demand) across the weekdays.
- If you need to show both demand and supply separately, you might have to consider a different type of chart or look for custom visuals in the Power BI marketplace, as standard Waterfall Charts are primarily designed for cumulative values.
- bansag2Frequent Visitor
Thank you for your response. I have a question regarding the waterfall chart. I want the chart to display the increase or decrease of net effect. For example, if the starting net effect is 100 and decreases every week, the waterfall chart should show the decrease bars. However, the chart currently shows increasing bars as the value is positive. Is there any way to change this behavior?
- AnonymousNot applicable
Hi bansag2 ,
I'm sorry, but it's true that you can only place one value in the waterfall chart officially provided by Microsoft, which is limited by the design of the waterfall chart itself. If you are trying to compare the difference between SUPPLY and DEMAND, then you can choose to use MEASURE to do the calculations and then put the MEASURE into the graph.
Also I don't understand your sentence "and the current stock measure to the Starting Value field", there is no such field in the official waterfall chart provided by Microsoft, may I ask which waterfall chart you are using?If it's custom visual, then I'm sorry that I may not be able to provide you with technical support, as custom visual has no official documentation for a specific introduction.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- bansag2Frequent Visitor
Hi
I am using a waterfall chart provided by dataviz.bo, the chart has the option to show the starting value of a measure.
- bansag2Frequent Visitor
Thank you for your response. I have a question regarding the waterfall chart. I want the chart to display the increase or decrease of net effect. For example, if the starting net effect is 100 and decreases every week, the waterfall chart should show the decrease bars. However, the chart currently shows increasing bars as the value is positive. Is there any way to change this behavior?