Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I need to do a R12 calculation that counts the number of rows for the past 12 months. I also do a R12 calculation on another measure, this way the measure is done for the past 12 months. Both of the measures are below:
Use a disconnected calendar for the windowing, and then a measure to calculate the values.
@Anonymous , Use date table, if you do not use a date table with continuous dates, you might get error with filters
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-12,MONTH))
refer
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Thank you, I created a date table but now I am having an issue where the measure shows a different number if I put a relative date filter for the past 12 calendar months. When I put this relative date filter on the graph it shows the correct score, is there a way I can have the measure do the past 12 calendar months? I think there must be something wrong the measure listed in my initial post. (This score is also going into a table that is why I need this filter in the measure)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |