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.
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,
Kai
Solved! Go to Solution.
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])
)
)
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.Could you accept your reply as solution to close this thread?
Regards
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])
)
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |