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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
FrugalEconomist
Helper III
Helper III

Cumulative Total from the dawn of time

Hi PowerBI users,

 

I'm trying to add cumulative total, but it resets each year. Is it possible to have it continuos from the dawn of time? You can see that my graphs dip at the end of each year.

 

 

Thank you,


Kaiyear to date.JPG

1 ACCEPTED SOLUTION
FrugalEconomist
Helper III
Helper III

I figured it out with better googling:

https://javierguillen.wordpress.com/2011/12/13/rolling-sum-across-categories-that-are-not-dates/

 

A sample code might look like this

Running Total = CALCULATE(SUM(Query1[Sales]),
FILTER(
ALL(Query1[Date].[Date]),
Query1[Date].[Date]<=MAX(Query1[Date].[Date])
)
)

View solution in original post

3 REPLIES 3
FrugalEconomist
Helper III
Helper III

I figured it out with better googling:

https://javierguillen.wordpress.com/2011/12/13/rolling-sum-across-categories-that-are-not-dates/

 

A sample code might look like this

Running Total = CALCULATE(SUM(Query1[Sales]),
FILTER(
ALL(Query1[Date].[Date]),
Query1[Date].[Date]<=MAX(Query1[Date].[Date])
)
)

Hi @FrugalEconomist,

 

Great to hear the problem got resolved.Smiley HappyCould you accept your reply as solution to close this thread?

 

Regards

FrugalEconomist
Helper III
Helper III

I figure it out! Found this resource with better googling: 

https://javierguillen.wordpress.com/2012/11/28/running-total-techniques-in-dax/

 

A sample code might look like this:

 

Running Total = CALCULATE(SUM(Query1[Sales]),
FILTER(
ALL(Query1[Date].[Date]),
Query1[Date].[Date]<=MAX(Query1[Date].[Date])
)
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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