Forum Discussion

Darwinm's avatar
Darwinm
Frequent Visitor
4 years ago
Solved

3 month rolling calculation

Hi folks,    I am trying to calculate 3 month rolling rate and have been struggling to get desired results. I have perfomed the analysis in Excel before moving to Power BI and am attching a snapsho...
  • Darwinm's avatar
    4 years ago

    Solution:
    3 month rolling = CALCULATE(
    AVERAGEX(VALUES('Calendar'[Date (bins)]),[Sales]),
    DATESINPERIOD('Calendar'[Date (bins)],MAX('Calendar'[Date (bins)]),-3,MONTH)
    )