Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
I have written this DAX expression for a measure in order to find the 12 month rolling average starting from the most recent month to 12 months before.
This is the most recent month in the table i.e. September.
However the first month displays February whereas it should have been October i.e. October to September.
I'm unsure as to why this is happening as the data is precise for all months from 2018-2023. Would appreciate any help.
Hi @kkashiv I would say your measure for Average do not include unique values for periods as in 12 months period there is "2 years" included, like 3 months from previous year and 9 months in this year. I mean, you should include your Calendar date, columns like YEAR-MONTH, not just month. Try it and debug.
Great link with example is below
https://www.sqlbi.com/articles/rolling-12-months-average-in-dax/
Hope this help. Cudos appreciated.
Proud to be a Super User!
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.