Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hello,
I know this must've been an old topic in Business Intelligence.
However, I didn't find any idea to realize what I'd like to achieve.
The thing is I'd like to create a Waterfall Chart with multiple measures.
Let's say that there's Fact Table containg accounting data (Revenues, Costs, Profits)
Thus it's a kind of running total, I can expect to draw the chart.
(Which item is main cause of profit decrease e.g., Ads/Logistics)
However, only solution I found at Google is restructuring the dataset like below
I don't think it's a good idea to manipulate the fact table, plus if I create another table, all the current measure refering the Table A would be not working with newly made one.
Is there any way to solve this?
Many thanks,
Hi,
Yes, you can do it via a workaround in DAX formula and a control table.
1. Create a table with matching "measure" name:
2. Create an additional measure for your waterfall chart, you may apply + or - for your measure to get the waterfall sentiment:
Waterfall value = SWITCH ( SELECTEDVALUE ( Table1[Index] ); 1; +[Measure 1]; 2; +[Measure 2]; 3; -[Measure 3]; BLANK() )
3. Apply the new measure in your waterfall chart, with the category based on the table field created (Note that you need to sort it via the category, use hierarchical drill-down if needed):
Cheers!
Hi!
thank you very much for this solution! it saved my day! I would like to ask if it´s possible to change the column color of just 3 measures. Is it possible? if yes, how? thank you!
@cyongt_bdf Hi, I know this is really old. Do you have the sample pbix file? I am not following the. Create a table with matching "measure" name. Thank you
This is amazing. Thank you!
Hi..Thanks for this solution. But how can you remove Total bar?? In my case, total bar is undesirable...moreover, can we change the colour of first and last bars to keep in lookalike?
this is my question!!
That's prety cool @cyongt_bdf, thanks
We dont need the column with the measures name in the table, just one with the names that we want in the axis, sorted by the index column.
In the graph we only need that name column, and the graph sorted by that column. No need for drilldown
Any ideas on how to change he colors? Maybe with the breakdown field?
Thanks a lot for this. How can I make the color of starting bar and end bar same? basically i want to show 1st bar as begining value. then all components and then fianlly end value. I want to set these 2 bars as total and different color from increase/decrease
I have the same question
Thank you a lot for this amazing solution!
I have just tried it out and it works perfectly
Great solution cyongt_bdf,
One small improvement I figued out while trying this is to make an additional column in the new table. You will use this new column field as your Category. This field be whatever you want your X-axis titles to be. For example, "1: Measure 1", "2: Measure 2". This way you do not have to drill down to get the x-axis to look the way you want, and you can still make the order of the items static.
I used a DAX formula like the following to make this new column:
X-Axis Titles = 'Table1'[Index]&": "&'Table 1'[Measure]
@Stuart_S How does this make it static?
For me based on this methodology, the columns in the waterfall shift based on whether the figures are accending or descrending. Can you share an example?
@Cali_2020 - My waterfall category table is at the bottom. This table is named 'Waterfall Table'.
I built a custom column in the 'Waterfall Table' I call 'Waterfall Category'. This measure is the first field in my waterfall vizualisation 'Category' section.
Measure | Gen. Cash Flow Adjustment Order | Waterfall Category | Short Measure Title | # & Short Title |
EBIT @ Budgeted fx | 1 | 1: EBIT @ Budgeted fx | EBIT | 1-EBIT |
Restruc. Expense | 2 | 2: Restruc. Expense | Res Exp | 2-Res Exp |
Currency Impact | 3 | 3: Currency Impact | FX | 3-FX |
D&A (Now at OPBDA) | 4 | 4: D&A (Now at OPBDA) | D&A | 4-D&A |
Cash Generated from Change in Restruc. Accrual | 5 | 5: Cash Generated from Change in Restruc. Accrual | Res. Acc. | 5-Res. Acc. |
Cash Generated from Change in A/P | 6 | 6: Cash Generated from Change in A/P | A/P | 6-A/P |
Cash Generated from Change in Inventory | 7 | 7: Cash Generated from Change in Inventory | Inv. | 7-Inv. |
Cash Generated from Change in A/R | 8 | 8: Cash Generated from Change in A/R | A/R | 8-A/R |
Cash used for Capex | 9 | 9: Cash used for Capex | Capex | 9-Capex |
Total Generated Cash Flow | 10 | Total Generated Cash Flow | TOT | Total |
Hope that helps.
hi
regarding the measure such as [fx_impact] where did you calculate them?
in order tables at the model? the Waterfall Table is just for collecting and arranging the data in order to create the waterfall?
it doesnt change based on values if you create an index. Once you assign order of the index, the chart always dispalys in that order. worked for me.
Hello,
I have seen that the "total" column can "disappear" by using a breakdown field; however, with this solution, how would you create that breakdown field?
Thanks!
How could we remove total bar in the end of this chart?
@gsaneja01 wrote:How could we remove total bar in the end of this chart?
Have you been able to remove the "total" bar from the chart?
Really good idea and perfect instructions!
Are you able to confirm that the idea posted above worked succesfully? I haven't had time to revisit this, but if it worked for you I will mark it as the solution.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
112 | |
105 | |
95 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |