Forum Discussion
Rolling balance
Hello Fellow Analysts,
I have a issue with the rolling balance row as shown in the picture. i want the balance( a measure) to become cumulative in the rolling balance row. In March 2024 it should show 8796, april 2024- 17235 (8796+8439) and so on. I cant unpivot the table to achieve this. Any other ideas on how this can work?
Hi, Swizal
try below measureMeasure = SUMX( FILTER( ALL('Table'[Dtae],'Table'[Value],'Table'[Name],'Table'[Supplier Line]), 'Table'[Dtae]<=MAX('Table'[Dtae]) && 'Table'[Name]=MIN('Table'[Name]) && 'Table'[Supplier Line]=min('Table'[Name]) ), [Value] )Best Regards,
Dangar
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- Dangar332Resident Rockstar
Hi, Swizal
try below measureMeasure = SUMX( FILTER( ALL('Table'[Dtae],'Table'[Value],'Table'[Name],'Table'[Supplier Line]), 'Table'[Dtae]<=MAX('Table'[Dtae]) && 'Table'[Name]=MIN('Table'[Name]) && 'Table'[Supplier Line]=min('Table'[Name]) ), [Value] )Best Regards,
Dangar
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- tharunkumarRTKSuper User
Swizal
You can follow this pattern for rolling sum
https://www.sqlbi.com/articles/computing-running-totals-in-dax/Need Power BI consultation, hire me on UpWork .
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun