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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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])))

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

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])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors