Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Swizal
Frequent Visitor

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?Rolling Balance issue.PNG

1 ACCEPTED 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.

View solution in original post

4 REPLIES 4
Dangar332
Super User
Super User

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.tempsnip.png

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.

tharunkumarRTK
Super User
Super 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



Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.