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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

calculate Running sum over Date

Hi all,

 

I want to calculate running sum over date. In the data shown i want to calculate column c (which is cooming from column B)

Thanks

 

Capture_2.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Try this formula: 

Running Total = 
CALCULATE (
    SUM ( TableName[gp] ),
    FILTER (
        ALL ( TableName[date] ),
       TableName[date] <= MAX ( TableName[date] )
    )
)

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Create a Calendar Table and build a relationship from the Date column of your Data Table to the Date column of the Calendar Table.  To your visual, drag Date from the Calendar Table.  Write these measures

GP Total = SUM(Data[GP])

Cumulative GP Total = CALCULATE([GP Total],DATESBETWEEN(Calendar[Date],MINX(ALL(Calendar),Calendar[Date]),MAX(Calendar[Date])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Try this formula: 

Running Total = 
CALCULATE (
    SUM ( TableName[gp] ),
    FILTER (
        ALL ( TableName[date] ),
       TableName[date] <= MAX ( TableName[date] )
    )
)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors