Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear all,
I am trying to create a dynamic waterfall chart allows the user to toggle between Forecast/Budget/Last Year comparing to this year Actual.
Sample as below chart.
Forecast/Budget are working fine since these categories fall into the same year.
Below is my DAX for Forecast and Budget:
My difficulty is on "Last Year", with below DAX, I can successfully fetch both current year and last year Actual in one measure
Solved! Go to Solution.
You may add CALCULATETABLE.
CALCULATETABLE ( VALUES ( Fact_Sample[Category_R] ), ALL ( 'Date' ) ),
You may add CALCULATETABLE.
CALCULATETABLE ( VALUES ( Fact_Sample[Category_R] ), ALL ( 'Date' ) ),
Thanks for the response.
In my actual case, it's a bit more complicated than the sample, since I add the other dimension (column) in the waterfall chart (which is "Segment")
But I finally achieve my expectation with the following code from your suggestion, just share if someone else might need it.
(I still not quite sure how does it works, need some more study on CALCULATETABLE)
Haha, anyone can help?
Thanks a lot!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |