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
Hello everyone, I need assistance correcting my formula for a 12-month rolling average. I am trying to find out the monthly spending of Amazon and Company Cards (Bento), then find out the monthly average per store. I am summing Amazon and Bento Spend based on status = 'Complete' and not 'Declined' See the following 3 measures:
Solved! Go to Solution.
Thank you, I actually used that site to help try and diagnose my issue but still couldn't figure out my error. My formula appears to be identical with the expectation he uses Variables. Also, my tables with the sales do not have daily sales, that's the only difference I can think of, but in my datesinperiod portion, I am using a continuous date table regardless.
I figured it out, I was trying to make the 12-month moving average a calculated column when it should be a measure. Thank you for helping me navigate this!
Hi @james_pease if possible share your pbi file to try to see details.
Proud to be a Super User!
Hi @james_pease check master link https://www.sqlbi.com/articles/rolling-12-months-average-in-dax/ I hope this help
Proud to be a Super User!
I figured it out, I was trying to make the 12-month moving average a calculated column when it should be a measure. Thank you for helping me navigate this!
Thank you, I actually used that site to help try and diagnose my issue but still couldn't figure out my error. My formula appears to be identical with the expectation he uses Variables. Also, my tables with the sales do not have daily sales, that's the only difference I can think of, but in my datesinperiod portion, I am using a continuous date table regardless.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
26 | |
21 | |
20 | |
13 | |
12 |
User | Count |
---|---|
40 | |
27 | |
27 | |
21 | |
20 |