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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pmuralikrishna1
Frequent Visitor

Power BI - DAX - Burndown/Up calculation

Hi,

 

I'm trying to calculate burndown/up data with a measure. I have the below scenario.sample.png

 

 

Expected Data for each row should be sum the previous total:

 

like sampleoutput.png

 

So i can have a graph showing burn down/up chart. like below screenshot for reference.

 

 

 

 sampleoutputpowerbi.png

 

 

 PBIX file: https://1drv.ms/u/s!AumHWDrVM37itl3rthHLTjj2zSaI

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @pmuralikrishna1,

 

 

Although the solution provided by my fellow datanaut @TomMartens (Tom please excuse me for responding also to this Smiley Happy) should be accurate I prefer to make the approach by a measure.

 

Make a measure with the following code:

Revenue Cumulative =
CALCULATE (
    SUM ( Revenue[Revenue] );
    FILTER ( ALL ( Revenue[Date] ); Revenue[Date] <= MAX ( Revenue[Date] ) )
)

As you can see below the expected result is achieved (green line is the column you used black is the measure)

 

cumm.png

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

6 REPLIES 6
MFelix
Super User
Super User

Hi @pmuralikrishna1,

 

 

Although the solution provided by my fellow datanaut @TomMartens (Tom please excuse me for responding also to this Smiley Happy) should be accurate I prefer to make the approach by a measure.

 

Make a measure with the following code:

Revenue Cumulative =
CALCULATE (
    SUM ( Revenue[Revenue] );
    FILTER ( ALL ( Revenue[Date] ); Revenue[Date] <= MAX ( Revenue[Date] ) )
)

As you can see below the expected result is achieved (green line is the column you used black is the measure)

 

cumm.png

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thank you @MFelix and @TomMartens for your help. This Measure and Formula helped me.

Hey @MFelix, there is nothing to excuse for, whatever helps to answer the question - is good 👍



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
TomMartens
Super User
Super User

Hey,

you can create a calculated column like so:

**bleep** Revenue by Project = 
var currentProject = 'yourTablename'[Project]
var currentDate = 'yourTablename'[Date]
return
CALCULATE(
    SUM('yourTablename'[Price])
    ,FILTER(All('yourTablename')
        ,'yourTablename'[Project] = currentProject && 'yourTablename'[Date] <= currentDate
    )
)

 

Hopefully this is what you are looking for

 

Regards Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
TomMartens
Super User
Super User

Hey,

 

somehow I miss the scenario you mentioned 😉

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Can you see now. i have added few more information.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.