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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Selected month and cumulated in one matrix

Hello all, 

 

I have a matrix I wanted to build where I show the revenue of the actual month (changeable through a filter) and also a column where I show the cumulated revenue of all months. I think that I have to create a measure for hat. 

 

CustomerActual MonthCumulated from the beginning

 

Thanks! 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You need a measure like

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

Share with Power BI Enthusiasts: 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

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You need a measure like

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak 

 

Thank you for the formula. That is what I have add into my dashboard but it somehow shows me random cumulated sales. On the left I have added the formula and in the matrix on the right side I just add all the month into the extra filter. The figures on the right are the correct ones. 

 

This is the formula I have used: 

Cumulative Total =
CALCULATE(sum(Table_Query_from_DataVirtualityUnicode[Umsatz]),
FILTER(ALL(Table_Query_from_DataVirtualityUnicode),
Table_Query_from_DataVirtualityUnicode[Auftragsdatum] <= MAX(Table_Query_from_DataVirtualityUnicode[Auftragsdatum])))

GabbyGla_0-1652087055312.png

 

 

EDIT: 

I have tested it without the rows for "partner company" and then it seems to work. What could be the reason? 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.