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! Learn more

Reply
MikeDubya
Helper I
Helper I

Reverse Cumulative sum issues

I have a calculated column that performs a reverse cumulative total. Without adding the reverse cumulatative column, I have a list of dates and whether a pilot landed during the day.  

MikeDubya_0-1678886996111.png

When I add my Reverse Column, it adds dates with blank LNDG Day and places the total in the Reverse Column:

MikeDubya_1-1678887062293.png

Here is my Dax Code:

Reverse Cumulative Total =
CALCULATE(
    SUM(Pilot[LNDG Day]),
    FILTER(ALL(Pilot[Depart Date (Z)]), Pilot[Depart Date (Z)] >= MIN(Pilot[Depart Date (Z)])))
 
What am I missing in my DAX code that would prevent the "12's" from showing up? Clearing I just want the 0, 0, 1, 3, not 0, 12, 0, 12, 1, 12, 12, 3 (from bottom up).
 
TIA!
1 REPLY 1
amitchandak
Super User
Super User

@MikeDubya , you should always prefer a separate date table joined with date of your table

 

Reverse Cumulative Total =
CALCULATE(
SUM(Pilot[LNDG Day]),
FILTER(ALL(Date), DateDate >= Max(Date[Date])))

 

Windows function can help

Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc

 

Running Total/ Cumulative: https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=41

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.