cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors