Forum Discussion

sdgiss's avatar
sdgiss
Helper I
5 years ago
Solved

Moving daily average with offset

Hello PBI Community!   I am trying to produce a 21-day moving average with a 7-day offset. The DAX formula below gets me close. In this instance the offset (7 days) is applied however the 21-day mo...
  • AllisonKennedy's avatar
    5 years ago

    sdgiss If you want the average to span 21 days, then it will need to be 27 days ago to 7 days ago (since you are use = on both ends it is inclusive, otherwise you'd need to use 28). 

     

    When you say 21 day moving average offset, what are you wanting to acheive? I think the 27 (or 28 without 😃 is what you're looking for?