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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

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