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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Urgent Reverse Burndown Chart for Features in Quarter

Hi Everyone,

    For all the experts of Power BI community, please help me in this dax. I am trying to create a burndown chart for Distinct Features Projected Vs Distinct Features Planned. I have two separate datasets for each like below

  Feature Projected Dateset: 

Feature_Id    End Date
1842179    05/14/2024
1730860     03/04/2024
1764030     03/01/2024
1757984     02/27/2024
1757947     03/05/2024
1757062     04/09/2024
1732445     03/04/2024
1872820     07/18/2024
1845193     07/18/2024
2162467    09/06/2024
2003900    07/18/2024
1960331   07/18/2024
1872804   09/06/2024
1867369   09/01/2024        

 

Feature Planned Dataset:

FeatureId    Target Date
2216545     08/08/2024
2118272     07/20/2024
2093351     09/30/2024
783008       09/30/2024
1913126     09/22/2024
1366800     08/17/2024
2329963     10/07/2024
2303984     09/11/2024
2303975     09/11/2024
2251162     09/11/2024
2093348     09/30/2024

 

I have date dimension table and has active relationship with both datasets above.

I Created dax but I am getting output as below in snap:

Planned = CALCULATE(DISTINCTCOUNT('Committed Features'[FeatureId]), FILTER(ALLSELECTED('Calendar') , MAX('Calendar'[Date]) <= 'Calendar'[Date]))
 
Projected = CALCULATE(DISTINCTCOUNT(Merge1[Feature_Id]), FILTER(ALLSELECTED('Calendar') , MAX('Calendar'[Date]) <= 'Calendar'[Date]))
 
jigarthanda_0-1721832673624.png

 

I am expected to get output as Below:
Where count ends with zero and datapoints are showing good

jigarthanda_1-1721832726406.png

 

Could anyone please help me out here. Not sure where I am going wrong. 

 @Greg_Deckler 
@community15 
@community24 

@v-kongfanf-msft 

 

1 ACCEPTED SOLUTION

@Anonymous in my opinion you have to adjust the DAX formulas to count down features over time.

Planned =
CALCULATE(
DISTINCTCOUNT('Feature Planned Features'[FeatureId]),
FILTER(
ALLSELECTED('Calendar'),
'Feature Planned Features'[Target Date] >= 'Calendar'[Date]
)
)

 

Projected =
CALCULATE(
DISTINCTCOUNT('Feature Projected Features'[Feature_Id]),
FILTER(
ALLSELECTED('Calendar'),
'Feature Projected Features'[End Date] >= 'Calendar'[Date]
)
)

 

BBF

View solution in original post

11 REPLIES 11
BeaBF
Super User
Super User

@Anonymous I don't quite understand what the problem is

Anonymous
Not applicable

Thanks for your reply @BeaBF , Its about how visual should be represented. Actually i have to create a burn down chart for Features Planned Vs Projected in Quarter. I am showing the Planned and Projected features in Quarter and calculating reverse burndown on basis of thier End Date and target date.

So in order to acheive that I created below dax for burndown

Planned = CALCULATE(DISTINCTCOUNT(Feature Planned features[FeatureId]), FILTER(ALLSELECTED('Calendar') , MAX('Calendar'[Date]) <= 'Calendar'[Date]))
 
Projected = CALCULATE(DISTINCTCOUNT(Feature projected Features[Feature_Id]), FILTER(ALLSELECTED('Calendar') , MAX('Calendar'[Date]) <= 'Calendar'[Date]))
 
But as you can see in the snaps I pasted below, the output is not as expected. 
I have pasted few mock up data of two datasets above which I use for this i.e. Feature projected Features and Feature Planned features datasets

So Basically, I Take distinct count of FeatureID from both dataset and with above dax I am doing the burndown. But I am expecting the output as below as we can see the count goes to zero and the datapoints breaking accurately (Have highlighted it). While the result I get shows a continous linear count without any breaks and not counting it down to zero.
Expected output:
jigarthanda_0-1721899745353.png

 

Output I got:

jigarthanda_2-1721899897369.png

 

 

Can you please let me know is there any other way to do it.

 

@Anonymous in my opinion you have to adjust the DAX formulas to count down features over time.

Planned =
CALCULATE(
DISTINCTCOUNT('Feature Planned Features'[FeatureId]),
FILTER(
ALLSELECTED('Calendar'),
'Feature Planned Features'[Target Date] >= 'Calendar'[Date]
)
)

 

Projected =
CALCULATE(
DISTINCTCOUNT('Feature Projected Features'[Feature_Id]),
FILTER(
ALLSELECTED('Calendar'),
'Feature Projected Features'[End Date] >= 'Calendar'[Date]
)
)

 

BBF

Anonymous
Not applicable

Thanks alot @BeaBF , you are saviour. Just one thing. The visual got populated correctly but unfortunately count is still not going to zero😔. Can you please suggest why its not going to count zero. I did some tweks in dax to call the Feature ID Column from both tables. I used Max function to call those columns. Below is how I did.

Planned =
CALCULATE(
DISTINCTCOUNT('Feature Planned Features'[FeatureId]),
FILTER(
ALLSELECTED('Calendar'),
MAX('Feature Planned Features'[Target Date]) >= 'Calendar'[Date]
)
)

 

Projected =
CALCULATE(
DISTINCTCOUNT('Feature Projected Features'[Feature_Id]),
FILTER(
ALLSELECTED('Calendar'),
MAX('Feature Projected Features'[End Date]) >= 'Calendar'[Date]
)
)


Output:

jigarthanda_0-1721903404833.png

 

@Anonymous only add "+0" at the end of the measures:


Planned =
CALCULATE(
DISTINCTCOUNT('Feature Planned Features'[FeatureId]),
FILTER(
ALLSELECTED('Calendar'),
'Feature Planned Features'[Target Date] >= 'Calendar'[Date]
)
) + 0

 

Projected =
CALCULATE(
DISTINCTCOUNT('Feature Projected Features'[Feature_Id]),
FILTER(
ALLSELECTED('Calendar'),
'Feature Projected Features'[End Date] >= 'Calendar'[Date]
)
) + 0

 

BBF

Anonymous
Not applicable

@BeaBF  I added the + 0 but it got Shrinked. We got the results just dealing with that count zero

jigarthanda_0-1721904863834.png

 

@Anonymous try change the filter direction of the relationship between Date Table and fact table

@Anonymous If it's ok please accept my answer as solution 🙂

 

BBF

Anonymous
Not applicable

can anyone urgenely please help with this. Please let me know if more info is required. In post above I have mentioned the datasets I use and given snap of actual and expected output results. Pleaes let me know if there is way aorund to acheive it
@v-kongfanf-msft 

@Greg_Deckler 

@Jihwan_Kim 

@BeaBF 

@Irwan 

Greg_Deckler
Community Champion
Community Champion

@Anonymous I have a Burndown chart example from Chapter 8 of DAX Cookbook. You can download the PBIX for chapter 8 here: DAXCookbook/Ch8 at master · gdeckler/DAXCookbook (github.com)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thank you so much @Greg_Deckler  for the cookbook, that helped me really understanding the concpet. But unfortunately, I have a bit different scenario here. As pasted in the sanp of expected output, I am required to burndown the counts of Projected features and Planned features with respect to thier End date and Target Date. the scenario in cook book is for hours and burndown the chart on basis of diff in those dates. I tried to put that logic in my scenario but didnt work. @Greg_Deckler  request you to please help me with scenario above. Thanks Again

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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