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