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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Pmorg73
Post Patron
Post Patron

Cumulative total that resets to zero on month slicer

Hi. I have a cumulative WIP which I plot with a cumulative budget line. It works great this month April, but when I got to month 2 on my slicer I want it to return to starting at Zero. WIP being the nature of Work in Progress will reset each month, so I need my budget line to reset as well. I am thinking it is using Selected value instead of Allselected, but I can't quite get it to work.

 

Current cumulative DAX

 

Daily Budget Line =
  IF(ISBLANK([Sum daily budget]), blank(),
      CALCULATE([Sum daily budget],
          FILTER(ALLSELECTED('00_calendar'[Date] ) ,
                 '00_calendar'[Date] <= MAX('00_calendar'[Date]))))
 

suggestions please

 

Phil

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Pmorg73 , I did not get it completely. But if you want reset monthly you use MTD

MTD Sales = CALCULATE([Sum daily budget],DATESMTD('Date'[Date]))

 

 

I am hosting a webinar on 25th April on Power BI, Check Details - https://www.linkedin.com/posts/amitchandak78_webinar-tech-techforgood-activity-6658266754378231808-y...

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Pmorg73 , I did not get it completely. But if you want reset monthly you use MTD

MTD Sales = CALCULATE([Sum daily budget],DATESMTD('Date'[Date]))

 

 

I am hosting a webinar on 25th April on Power BI, Check Details - https://www.linkedin.com/posts/amitchandak78_webinar-tech-techforgood-activity-6658266754378231808-y...

Exactly what I wanted cheers

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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