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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rhaddad87
Helper I
Helper I

Cumulative Running Total based on column or date

Hi, everyone! I'd like to create a cumulative sum column in DAX that calculates the SUM of [FlightHours] from either September to September or everytime [Day/Mo] hits 13 from 17 (The month is split at September 14).   Screenshot below.  Open to any ideas.  Thank you! 

 

cumulativetotalhelp.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @rhaddad87,

You can try to use the following calculate column formula if helps:

formula =
CALCULATE (
    SUM ( Table[FlightHours] ),
    FILTER (
        'Table',
        [Date] <= EARLIER ( Table[Date] )
            && [Date] >= DATE ( YEAR ( EARLIER ( Table[Date] ) ), 9, 1 ) 
            && [Date] < DATE ( YEAR ( EARLIER ( Table[Date] ) ) + 1, 9, 1 )
    )
)

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @rhaddad87,

You can try to use the following calculate column formula if helps:

formula =
CALCULATE (
    SUM ( Table[FlightHours] ),
    FILTER (
        'Table',
        [Date] <= EARLIER ( Table[Date] )
            && [Date] >= DATE ( YEAR ( EARLIER ( Table[Date] ) ), 9, 1 ) 
            && [Date] < DATE ( YEAR ( EARLIER ( Table[Date] ) ) + 1, 9, 1 )
    )
)

Regards,

Xiaoxin Sheng

Whitewater100
Solution Sage
Solution Sage

Hi:

Please see attached link. Once you have a date table it is easier to do these specialized calculations.

https://drive.google.com/file/d/1oTy2F3vGo_B8e_q8w3YfDA12OrsnV_X_/view?usp=sharing 

 

You can change the last part of this measure to the year-end date you like.

 

YTD Fiscal Hours = CALCULATE([Total Flight Hours],
DATESYTD('Date'[Date], "08/31"))
 
Total Flight Hours = SUM(FlightHours[Flight Hours])

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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