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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
jabrillo
Helper I
Helper I

Monthly Burn Rate

I want to create a line chart of monthly burn rate. This is how my file looks like:

PeriodActual Cost
1100
2120
3140
4100

This is what I want to accomplish:

PeriodBurn RateCalculation
1100100/1
2110220/2
3120360/3
4115460/4

I tried this dax formula:

Burn Rate =

   VAR _PeriodCount = selectedvalue([Period])

   VAR _ActualCost = calculate(sum([Actual Cost]), [Period] <= max([Period]))

   VAR _BurnRate = divide(_ActualCost, _PeriodCount)

   RETURN _BurnRate

The burn rates for periods 2 to 4 were calculated incorrectly. Instead of dividing the YTD cost by the number of periods, it was dividing the cost of that period by the number of periods. What's wrong?

 

7 REPLIES 7
v-menakakota
Community Support
Community Support

Hi @jabrillo ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @jabrillo ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

lbendlin
Super User
Super User

lbendlin_0-1746471119688.png

Burn Rate = 
var p = [Period]
return DIVIDE(SUMX(FILTER('Table',[Period]<=p),[Actual Cost]),p)

 

If Burn Rate is a measure, var p = [Period[ is not valid.

why should it be a measure?  Can it be impacted by user filters?

 

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Greg_Deckler
Super User
Super User

@jabrillo Try:

Burn Rate =
   VAR _Period = MAX( 'Table'[Period] )
   VAR _Table = FILTER( ALL( 'Table' ), [Period] <= _Period )
   VAR _ActualCost = SUMX( _Table, [Actual Cost] )
   VAR _BurnRate = DIVIDE( _ActualCost, _Period )
RETURN 
   _BurnRate


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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

The table would also have Project ID as another column. So the table looks like this:

Project IDPeriodActual Cost
   
   
   
   

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors