Forum Discussion
JJ2022PBI
1 year agoHelper I
Waterfall Charts - help needed please!
Hello, I would like to create a waterfall chart showing the movement in a bank account between two user defined dates. The categories used in the waterfall would be; 1) Opening Balance [the u...
Anonymous
1 year agoNot applicable
Hi JJ2022PBI ,
You did not provide your data and measures, so I can only create sample data and measures for testing. If my sample data and measures are different from yours, please adjust them yourself or provide your sample data and DAX, thank you!
Here is my sample data:
And here are the measures:
Money In =
CALCULATE(
SUM(Assets[Value (£)]),
Assets[Attribute] = "Money In"
)Money Out =
CALCULATE(
SUM(Assets[Value (£)]),
Assets[Attribute] = "Money Out"
)Interest =
CALCULATE(
SUM(Assets[Value (£)]),
Assets[Attribute] = "Interest"
)
Then I use this DAX to create another measure:
Closing Balance =
VAR Opening_Balance =
CALCULATE(
SUM(Assets[Value (£)]),
Assets[Attribute] = "Opening Balance",
Assets[Date] = MIN('Date'[Date])
)
RETURN
Opening_Balance + [Money In] - [Money Out] + [Interest]
And create the waterfall chart:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.