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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Exactly what I wanted cheers

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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