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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
QS7
Frequent Visitor

Cumulated total not working properly with filter

Hi erveryone, 
I have an issue with a Cumulated total measure, the measure is the following :

 

CALCULATE(
	SUM('Sales'[Number of sales]),
	FILTER(ALLSELECTED('Sales'[Date]) ,'Sales'[Date]<=MAX('Sales'[Date])
))

 

The measure is working as long i'm not trying to filter my datas, when i do ( For exemple when i'm filtering on all the sales > 0$, which is always the case ), the measure is not cumulating anymore and results in something like this :

DateNumbers of sales
01/03/202156
02/03/202154
03/03/202178
04/03/202180
05/03/20210
06/03/202165


Does anyone have an idea where the problem might come from ?
Thanks !

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@QS7 , The date you are using should be the date from sales in visual

 

try like

 

CALCULATE(
	SUM('Sales'[Number of sales]),
	FILTER(ALLSELECTED('Sales') ,'Sales'[Date]<=MAX('Sales'[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

1 REPLY 1
amitchandak
Super User
Super User

@QS7 , The date you are using should be the date from sales in visual

 

try like

 

CALCULATE(
	SUM('Sales'[Number of sales]),
	FILTER(ALLSELECTED('Sales') ,'Sales'[Date]<=MAX('Sales'[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

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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