Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
IF
Post Prodigy
Post Prodigy

Waterfall chart with multiple measures

Hi,

I read discussion about waterfall chart but it didn't work when I tried the following.

I have product category and 8 measures in the same table. The measures have + and - values. I would like show them in the waterflow chart. I made another new table (name:Waterfalltable); one column for the name of the measures and the other one is for index. I also made a new measure.

 

Waterfall =
SWITCH(
SELECTEDVALUE('Waterfalltable'[Index]),
1, +[R_DM],
2, +[R_Nego],
3, +[R_Pjt],
4, +[R_Raw],
5, +[R_FX],
6, +[R_EC],
7, +[R_Pjt2],
8, +[R_Raw2],
BLANK()
)
 

I am not sure what to do next at the visualization panel. I tried to put the new measure to value field didn't work.

Maybe there is a better way of doing waterfall.

Could you help me?

 

All  the best

 

After this stage I am not sure what to do. Also there should be a relation between the new table and 

 

 

2 ACCEPTED SOLUTIONS
v-alq-msft
Community Support
Community Support

Hi, @IF 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

 

Table:

e1.PNG

 

Test:

e2.PNG

 

There is no relationship between two tables: You may create measures as below.

A Measure = SUM('Table'[A])

R_DM Measure = SUM('Table'[R_DM])

R_Nego Measure = SUM('Table'[R_Nego])

R_Pjt Measure = SUM('Table'[R_Pjt])

Result = 
SWITCH(
    SELECTEDVALUE(Test[MeasureName]),
    "A",[A Measure],
    "R_DM",[R_DM Measure],
    "R_Nego",[R_Nego Measure],
    "R_Pjt",[R_Pjt Measure],
    BLANK()
)

 

Result:

e3.PNG

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

v-alq-msft
Community Support
Community Support

Hi, @IF 

 

You may go to 'Query Editor', click 'Add Columns'=>'Index Column' to create an index column and then 'Close and Apply'.

x3.png

 

Then you need to make the column 'MeasureName' selected, click 'Sort by column'=>'Index'.

x4.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-alq-msft
Community Support
Community Support

Hi, @IF 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

 

Table:

e1.PNG

 

Test:

e2.PNG

 

There is no relationship between two tables: You may create measures as below.

A Measure = SUM('Table'[A])

R_DM Measure = SUM('Table'[R_DM])

R_Nego Measure = SUM('Table'[R_Nego])

R_Pjt Measure = SUM('Table'[R_Pjt])

Result = 
SWITCH(
    SELECTEDVALUE(Test[MeasureName]),
    "A",[A Measure],
    "R_DM",[R_DM Measure],
    "R_Nego",[R_Nego Measure],
    "R_Pjt",[R_Pjt Measure],
    BLANK()
)

 

Result:

e3.PNG

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi,

 

Thanks for the answer. Is there any possibility to display the changes in an order? I would like to sort them "A", "R_DM", "R_Nego", "R_Pjt". I have more to measures. Therefore the order is important for me.

 

Best,

v-alq-msft
Community Support
Community Support

Hi, @IF 

 

You may go to 'Query Editor', click 'Add Columns'=>'Index Column' to create an index column and then 'Close and Apply'.

x3.png

 

Then you need to make the column 'MeasureName' selected, click 'Sort by column'=>'Index'.

x4.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

I don't know if I am doing something wrong for sorting. As you mentioned,  I add the index column:

Index columnIndex columnsortingsorting

The sorting doesn't change at all. It is a small issue, but annoying me. Maybe I do smtg wrong.

 

All the best,

 

 

 

aj1973
Community Champion
Community Champion

Hi @IF

Not sure that understood your issue but i think it is because your Waterfall measure is returning a string instead of a Value and probably thats why the waterfall chart is not accepting it.

Try to use True() instead of SELECTEDVALUE inside your SWITCH and the number of your Index for the values.

Waterfall =

Switch(

True(),

'Waterfalltable'[Index]=1,+[R_DM],

.

.

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Hi,

 

For example; I have the following data. The listed are all measures.

XXYYA(this is measure 1)R_DM (this is measure 1)R_Nego(this is measure 2)R_Pjt (this is measure 3)
353532M2503-10-10
353533M200410-5
353536M25031020
353551M3004-10-5
353552M2006-105
353553M30050-15
353601M3007-5-10
353602M3007-510
353604M3006010

 

Based on the xx category I want to show waterfall charts. The value should be sum for each xx category. Again all of the values are measures. The waterfall chart should show:

XXYYA(this is measure 1)R_Nego(this is measure 2)R_Pjt (this is measure 3)R_Raw (this is measure 4)
35353 70010105
35355 80015-20-10
35360 90020-1010

 

I hope it is clear now.

 

All the best,

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors