Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Average Last 6 months accumulated

Hello dear community, I come to you so that you can help me with this DAX calculation.   I need a Calculated Column to show me: the average of the last 6 months accumulated for each collaborator ...
  • CNENFRNL's avatar
    5 years ago
    AVG 6M = 
    CALCULATE(
        AVERAGEX( DATA, DATA[Compensation] ),
        DATESINPERIOD( DATA[Date], MAX( DATA[Date] ), -6, MONTH )
    )