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

DAX Measure to create burndown table

Hello guys,

 

I am having trouble in creating a measure to populate below burndown table(output table) in Power BI. 

 

I wanted to create a measure to replicate the following table. I have provided the acutal data(input table) below. I don't have a date field to use dax intelligence function. I have only year and category fields. I would appreciate any suggestion/help to acheive the below expected output in Power BI. Please let me know if you need any additional information. 

 

 Output table 

 201820192020
Category 11140
Category 2960

 

 

Calculations

Category 1 - 2018 = rolling sum of all years  - sum of products in category 1 for 2018

                               =  ((2018 Products) + (2018 + 2019 products) + (2018 + 2019 + 2020 Products) ) - 2018 produts

                               =  ( 2 + (2 + 7) + ( 2+ 7 + 4)) - 2 = 11

 

Category 1 - 2019 = rolling sum of all years  - sum of products in category 1 for 2019

                               =  ((2018 Products) + (2018 + 2019 products) + (2018 + 2019 + 2020 Products) ) - (2018 + 2019                                                                                                                                                                                        Produts) 

                               =  ( 2 + (2 + 7) + ( 2+ 7 + 4)) - (2 + 7) = 4

 

similary for all other years and categorys 

Input data

ProductCategoryYear
Product 1Category 12018
Product 2Category 12018
Product 3Category 22018
Product 4Category 22018
Product 5Category 22018
Product 6Category 12019
Product 7Category 12019
Product 8Category 12019
Product 9Category 12019
Product 10Category 12019
Product 11Category 12019
Product 12Category 12019
Product 13Category 22019
Product 14Category 22019
Product 15Category 22019
Product 16Category 12020
Product 17Category 12020
Product 18Category 12020
Product 19Category 12020
Product 20Category 22020
Product 21Category 22020
Product 22Category 22020
Product 23Category 22020
Product 24Category 22020
Product 25Category 22020

 

 

Thank you

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @manojsv16,

 

I have to say your equation is misleading. Please download the demo in the attachment. 

Measure =
VAR maxYear =
    CALCULATE ( MAX ( Table1[Year] ), ALL ( Table1[Year] ) )
RETURN
    CALCULATE (
        COUNTROWS ( 'Table1' ),
        FILTER (
            ALL ( Table1[Year] ),
            'Table1'[Year] > MIN ( 'Table1'[Year] )
                && 'Table1'[Year] <= maxYear
        )
    )

DAX-Measure-to-create-burndown-table

Best Regards,
Dale

Community Support Team _ Dale
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

8 REPLIES 8
v-jiascu-msft
Employee
Employee

Hi @manojsv16,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

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

Thanks a lot Dale!!

v-jiascu-msft
Employee
Employee

Hi @manojsv16,

 

I have to say your equation is misleading. Please download the demo in the attachment. 

Measure =
VAR maxYear =
    CALCULATE ( MAX ( Table1[Year] ), ALL ( Table1[Year] ) )
RETURN
    CALCULATE (
        COUNTROWS ( 'Table1' ),
        FILTER (
            ALL ( Table1[Year] ),
            'Table1'[Year] > MIN ( 'Table1'[Year] )
                && 'Table1'[Year] <= maxYear
        )
    )

DAX-Measure-to-create-burndown-table

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

I appreciate for providing solution. I would like to let you know that i dont have a date column in the input table. Is there a way to derive the output table without date field. 

 

Thank you in advance!!

You are welcome.  I have created a Date column from your Year column and then used the DAX Date Intelligence functions.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

I am sorry for bugging you again 

 

In my actual data, I can't manipulate the input table by adding date column. I would like to check with you whether we can create a measure without date column in the input data. I have only year field.

 

Thank you in advance!!

No Problem.  Someone else will help you with this.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.