Forum Discussion

yashrajs's avatar
yashrajs
New Member
2 years ago
Solved

Calculate Average for a measure

I have a table that looks something like this:   I use the following formula to caluculate the MEASURE 'Alternative Claculated Burn Rate': Alternative Calculated Burn Rate = DIVIDE([Cou...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi yashrajs 

    You can consider to create a date table, then create one-many relationship between tables

    Then use the following measure.

    Measure =
    CALCULATE (
        AVERAGE ( 'Historical Contracts by Load Date'[Alternative Calculated Burn Rate] ),
        DATESINPERIOD ( 'DateTable'[Date], MAX ( 'DateTable'[Date] ), -6, MONTH )
    )
    

    and you can refer to the following link about the function.

    DATESINPERIOD function (DAX) - DAX | Microsoft Learn

     

    Best Regards!

    Yolo Zhu

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