March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I need a formula for a 12 Month Rolling Average. Hoping to use a quick measure. Can anyone help?
For example, if i had 2 years worth of data, lets say all of 2020 and all of 2021 and I only want to bring back the 12 Month Average of the last 12 months. How can I do that?
Solved! Go to Solution.
Last 12 Months V1 =
CALCULATE (
[CPT Working],
DATESINPERIOD (
'Calendar'[dt], -- returns period from date column
MAX ( 'Calendar'[dt] ), -- starting from MAX date
-12, -- shifting it back 12 intervals
MONTH -- each interval being a month
)
)
--------------------------
Then ...
365 = 365
---------------------------------
Then ...
Last 12 Months V1 divided by 365 =
DIVIDE([Last 12 Months V1], [365])
Last 12 Months V1 =
CALCULATE (
[CPT Working],
DATESINPERIOD (
'Calendar'[dt], -- returns period from date column
MAX ( 'Calendar'[dt] ), -- starting from MAX date
-12, -- shifting it back 12 intervals
MONTH -- each interval being a month
)
)
--------------------------
Then ...
365 = 365
---------------------------------
Then ...
Last 12 Months V1 divided by 365 =
DIVIDE([Last 12 Months V1], [365])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |