Forum Discussion
Waterfall issue
- 8 years ago
Hi erihsehc,
You could try two ways.
Solution 1
Create a one to many relationship between 'Sheet1' and 'Sheet2' based on common field.
Create a simple measure like below. Add this measure into waterfall chart rather than a calculated column.
Measure amount = SUM(Sheet2[amount])
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
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
- erihsehc8 years agoHelper III
hi v-yulgu-msft, yes it is, the waterfall should update based on the slicer selecion. pbix, thanks:manhappy:
- erihsehc8 years agoHelper III
hi @v-yulgu-msft, yes it is, the waterfall should update based on the slicer selecion. here is the file pbix, thanks

- v-yulgu-msft8 years agoMicrosoft Employee
Hi erihsehc,
You could try two ways.
Solution 1
Create a one to many relationship between 'Sheet1' and 'Sheet2' based on common field.
Create a simple measure like below. Add this measure into waterfall chart rather than a calculated column.
Measure amount = SUM(Sheet2[amount])
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- erihsehc8 years agoHelper III
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: