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
senorbol
Frequent Visitor

Probem with dax calculation to reduce values from total

Hi All, 

 

I wondered if someone could help with an issue I have with a dax calculation. My DAX skills are fairly basic so hoping an expert can solve this issue. 

 

I've got data where I need to make up a total of a certain type of asset and display this per quarter - there is then another value which shows reduction in this asset per quarter - I've got as far as detailed below but the issue I'm having is when the reductions start if there are no further reductions in future dates then the value goes back to the total. 

 

Details and explanation here:

 

senorbol_0-1620720047386.png

 

As you can see from the screenshot - the burndown forecast is correct up until Q1 2022 - but as there are no further reductions my forecast value returns to 50. What I want to achieve is the burndown forecast value to remain at the reduced value - 2022 Q2, Q3 and Q4 would show as 5 until the further reduction of 1 in 2022 Q4 which should then give me a value of 4.

 

Here are the dax calcs I've used.

 

Cumulative Output =


CALCULATE([ST_Count] ,
FILTER( ALLSELECTED ('Calendar'), 'Calendar'[Date] <= MAX ('Calendar'[Date])-1)
) +0
 
Output 2BC = 
CALCULATE([ST_Count] , ALLEXCEPT('Master Data 2', 'Master Data 2'[Service Type Bucket 2], 'Master Data 2'[CSP_OOS_Fix] ))
 
Burndown Forecast = [Output2BC] - [Cumulative output]
 
Any help on this would be greatly appreciated. Also if you require any further info please let me know. 
 
Thanks
 
 
1 REPLY 1
lbendlin
Super User
Super User

Your Quarter column needs to be a YearQuarter column.  2021Q1  etc.

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.

Top Solution Authors