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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ribisht17
Super User
Super User

Running Total not working as expected

Hello Datafam,

 

@amitchandak 

 

I have the below scenario where I need to calculate RUNNING total,

 

It not giving me the exact output as I was looking for

 

ribisht17_0-1700101571099.png

 

See the Yellow part showing the wrong running total

ribisht17_1-1700101756268.png

 

 

I am using this DAX function,

 

Count Certification Active running total in Cert Calendar Date =
CALCULATE(
    sum('Master Certification Tab'[Certification Count_C]),
    FILTER(
        ALLSELECTED('Certification Calendar Date'[Cert Calendar Date]),
        ISONORAFTER('Certification Calendar Date'[Cert Calendar Date], MIN('Certification Calendar Date'[Cert Calendar Date]), desc)
    )
)
 
No sure about the issue with this DAX, I am using calendar dates here
 
Let me know if you need more info
 
Regards,
Ritesh

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ribisht17 , Make sure that Year, Qtr, and month are from the 'Certification Calendar Date' and it not a from a Auto date hierarchy , There should be columns from 'Certification Calendar Date' 

 

 

few version

 

CALCULATE(
sum('Master Certification Tab'[Certification Count_C]),
FILTER(
ALLSELECTED('Certification Calendar Date'[Cert Calendar Date]),
'Certification Calendar Date'[Cert Calendar Date]<= Max('Certification Calendar Date'[Cert Calendar Date])
)
)

 


CALCULATE(
sum('Master Certification Tab'[Certification Count_C]),
FILTER(
all('Certification Calendar Date'[Cert Calendar Date]),
'Certification Calendar Date'[Cert Calendar Date]<= Max('Certification Calendar Date'[Cert Calendar Date])
)
)

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

View solution in original post

2 REPLIES 2
ribisht17
Super User
Super User

Thanks much Amit, looks like it will work , I will mark your answer when I test it

 

Regards,

Ritesh

amitchandak
Super User
Super User

@ribisht17 , Make sure that Year, Qtr, and month are from the 'Certification Calendar Date' and it not a from a Auto date hierarchy , There should be columns from 'Certification Calendar Date' 

 

 

few version

 

CALCULATE(
sum('Master Certification Tab'[Certification Count_C]),
FILTER(
ALLSELECTED('Certification Calendar Date'[Cert Calendar Date]),
'Certification Calendar Date'[Cert Calendar Date]<= Max('Certification Calendar Date'[Cert Calendar Date])
)
)

 


CALCULATE(
sum('Master Certification Tab'[Certification Count_C]),
FILTER(
all('Certification Calendar Date'[Cert Calendar Date]),
'Certification Calendar Date'[Cert Calendar Date]<= Max('Certification Calendar Date'[Cert Calendar Date])
)
)

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.