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
E_K_
Helper II
Helper II

Burndown for the current month

I'm so stuck - read lots of articles and forum posts on here but nothing advised that I try is working. Please help!

 

I am trying to create a burndown for this month. For this I need only 2 datasets 'Dates' (my connected dimdate table) and 'Incidents (NO SPLITS)'.

 

I have a measure for target (that is based on a KPI) here: 

Target Month Incidents =
VAR currentDate = TODAY()
VAR star = STARTOFMONTH('Dates'[Date])
VAR enh = ENDOFMONTH('Dates'[Date])
VAR calc = DIVIDE(0.8 * [Incident Volume YE last year], 12, 0)
RETURN
        CALCULATE(
            calc,
            FILTER(
                ALL('Dates'), // Ignore any filters that might limit the Dates context
                'Dates'[Date] >= star && 'Dates'[Date] <= enh
            )
        )
 
I have a target for the accumulation which is based off of a column in 'Incidents (NO SPLITS)' which shows a 1 for if the incident is in the current month and a 0 if not. 
Cumulative month incidents =
VAR currentDate = TODAY()
VAR star = STARTOFMONTH('Dates'[Date])
VAR enh = ENDOFMONTH('Dates'[Date])
VAR calc =  CALCULATE(SUM('Incidents (NO SPLITS)'[InCurrentMonth]))
RETURN
        CALCULATE(
            calc,
            FILTER(
                ALL('Dates'), // Ignore any filters that might limit the Dates context
                'Dates'[Date] >= star && 'Dates'[Date] <= enh
            )
        )
 
Lastly, my burndown measure just 
Incitndet monthly burndown =
[Target Month Incidents] - [Cumulative month incidents]
 
The values show okay in a table or graph if I don't add a date to the axis, however when I do it shows Target as 0, the cumulative measure as just adding the number per day (rather than + on the previous day) and the burndown as negative values (as the target is 0). 
I've tried all sorts, using the date from my 'Dates' dataset, the date from my 'Incidents (NO SPLITS)' dataset, a calculated table that just shows the days of March, etc but its not showing correctly. 
 
What am I doing wrong?
Date added:                                                                                No date:
 
E_K__3-1709634554551.png

No date:

E_K__2-1709634444734.png

 


 

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @E_K_ ,

Please have a try.

Cumulative Month Incidents = 
CALCULATE(
    SUM('Incidents (NO SPLITS)'[InCurrentMonth]),
    FILTER(
        ALLSELECTED('Dates'),
        'Dates'[Date] <= MAX('Dates'[Date])
    )
)

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
E_K_
Helper II
Helper II

These did not help, thanks for trying, I had already tried that

v-rongtiep-msft
Community Support
Community Support

Hi @E_K_ ,

Please have a try.

Cumulative Month Incidents = 
CALCULATE(
    SUM('Incidents (NO SPLITS)'[InCurrentMonth]),
    FILTER(
        ALLSELECTED('Dates'),
        'Dates'[Date] <= MAX('Dates'[Date])
    )
)

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.