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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Cumulative over all dates up to now?

Dear all,

 

I was wondering whether there was a way to make a cumulative similar to TOTALYTD, but not for a specific year but over all years in total? Like a TOTALTD function.

 

This calculates the total year to date, but I would like to calculate the total cumulative to date.

TOTALYTD(SUM('original data'[Revenue]);'original data'[Date];ALL('original data'))

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

 

If you want to calculate the total of all years to current date , I'd suggest you use

 

Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])))

 

Eyelyn9_0-1636703964207.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous ,

 

If you want to calculate the total of all years to current date , I'd suggest you use

 

Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),[Date]<=MAX('Table'[Date])))

 

Eyelyn9_0-1636703964207.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@Anonymous Seems like CALCULATE(SUM('original data'[Revenue]); ALL('original data'))

You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000

Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Top Solution Authors
Top Kudoed Authors