Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Best regards
ER
Solved! Go to Solution.
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
hi @v-yulgu-msft, yes it is, the waterfall should update based on the slicer selecion. here is the file pbix, thanks
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
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
hi @v-yulgu-msft, yes it is, the waterfall should update based on the slicer selecion. pbix, thanks
would expert help on solving? thanks
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.