The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?
Solved! Go to Solution.
Hi, @Swizal
try below measure
Measure =
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.
Hi, @Swizal
Try below measure
Measure =
SUMX(
FILTER(
ALL('Table'),
'Table'[Dtae]<=MAX('Table'[Dtae])
),
[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.
Hi @Dangar332 ,
Thankyou for your inputs. It may seem that there is only one context of date ,except ,there is another context of the supplier. and a few more slicers like (line item, planner name) which comes into play. Please find the below snippet of the same.
Hi, @Swizal
try below measure
Measure =
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.
@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
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |