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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors