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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

cumulative per category

Hi,
 
I would like to find a measure that returns cumulative totals of values per category.
I have found the formula for cumulative totals:
Cumulative total = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'[Date].[Date]),'Table'[Date].[Date]<=MAX('Table'[Date])))
Can I add something to this formula to be able to distinguish between categories?
 
Thank you in advance
image.png
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@zpf , Test as

Total acumulado: CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Date]]<-MAX('Table'[Date]) && 'Table'[category]]<-MAX('Table'[category])))

O


Cumulative total: CALCULATE(SUM('Table'[Value]),ALL('Table'[Date]), ALL('Table'[category]),FILTER(('Table'),'Table'[Date]]<-MAX('Table'[Date]) && 'Table'[category]]<-MAX('Table'[category])))

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@zpf , Test as

Total acumulado: CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Date]]<-MAX('Table'[Date]) && 'Table'[category]]<-MAX('Table'[category])))

O


Cumulative total: CALCULATE(SUM('Table'[Value]),ALL('Table'[Date]), ALL('Table'[category]),FILTER(('Table'),'Table'[Date]]<-MAX('Table'[Date]) && 'Table'[category]]<-MAX('Table'[category])))

Anonymous
Not applicable

Thank you, 

Hi @Anonymous ,

 

Is your issue solved now?

 

If so,could you pls mark the reply as answered  to close it?

 

 
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.