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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.