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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
erihsehc
Helper III
Helper III

Waterfall issue

hi there,

 

I am not sure how to create waterfall by using the different measures. Would expert please help?

Attached the pbix, I would like the waterfall update when slicers selection of "customer" and "division" are changed. thanks

 

I have created the waterfall as below, however it can not be updated by slicer selection

 waterfall.JPG

pbix

Best regards

ER

1 ACCEPTED SOLUTION

Hi @erihsehc,

 

You could try two ways.

 

Solution 1

Create a one to many relationship between 'Sheet1' and 'Sheet2' based on common field.

1.PNG

 

Create a simple measure like below. Add this measure into waterfall chart rather than a calculated column.

Measure amount = SUM(Sheet2[amount])

2.PNG

 

Solution2

Without any relationship between 'Sheet1' and 'Sheet2', create a measure like this, also, add this measure into waterfall chart.

Measure Amount2 =
IF (
    LASTNONBLANK ( Sheet1[Column1], 1 ) = "PAT Budget",
    [PAT budget],
    IF (
        LASTNONBLANK ( Sheet1[Column1], 1 ) = "Fty PBT",
        [Fty PBT],
        IF (
            LASTNONBLANK ( Sheet1[Column1], 1 ) = "SGA & Others",
            [SGA],
            IF ( LASTNONBLANK ( Sheet1[Column1], 1 ) = "Tax", [Tax] )
        )
    )
)

 

I have uploaded the modified .pbix file for your reference.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
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

7 REPLIES 7
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @erihsehc,

 

How do you want the waterfall chart to be updated? If "customer" and "division" are related to columns you added to waterfall chart, the chart will update automatically based on slicer. 

 

For more advice, please share sample data so that I can test for you.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi @v-yulgu-msft, yes it is, the waterfall should update based on the slicer selecion. here is the file pbix, thanksMan Happy

Hi @erihsehc,

 

You could try two ways.

 

Solution 1

Create a one to many relationship between 'Sheet1' and 'Sheet2' based on common field.

1.PNG

 

Create a simple measure like below. Add this measure into waterfall chart rather than a calculated column.

Measure amount = SUM(Sheet2[amount])

2.PNG

 

Solution2

Without any relationship between 'Sheet1' and 'Sheet2', create a measure like this, also, add this measure into waterfall chart.

Measure Amount2 =
IF (
    LASTNONBLANK ( Sheet1[Column1], 1 ) = "PAT Budget",
    [PAT budget],
    IF (
        LASTNONBLANK ( Sheet1[Column1], 1 ) = "Fty PBT",
        [Fty PBT],
        IF (
            LASTNONBLANK ( Sheet1[Column1], 1 ) = "SGA & Others",
            [SGA],
            IF ( LASTNONBLANK ( Sheet1[Column1], 1 ) = "Tax", [Tax] )
        )
    )
)

 

I have uploaded the modified .pbix file for your reference.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thanks a lot @v-yulgu-msft, this perfectly works. BTW, why using lastnonblank function works? it is amazing. (I am a beginner on that):smileyhappy:

Hi @erihsehc,

 

In your scenario, you created a calculated column which is static. To show values conditionally based on slicer selection, we should choose measure. But, in a measure, we cannot directly reference to a column name, we can use lastnonblank function to get corresponding value in current context (current row). If Column1 is numeric, you can also use MAX, MIN, instead of LASTNONBLANK.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi @v-yulgu-msft, yes it is, the waterfall should update based on the slicer selecion. pbix, thanksMan Happy

erihsehc
Helper III
Helper III

would expert help on solving? thanksRobot Happy

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.