- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Rolling 12 months against another rolling 12 months from a previous period
Hi all - I'd like to do some DAX to get a rolling 12 month figure, then compare that to a rolling 12 month from 2 years ago, but I'm having trouble figuring out how to do it
I have a calendar table with things like 'DATE', 'YEAR', 'MONTH', 'WEEK IN YEAR NUMBER' etc and I'd like to be able to do it for the latest full completed week, so looking back from week 45 in 2021 to week 46 in 2020 and then have the same thing for from week 45 in 2019 to week 46 in 2018 and then a sum that compares the change between the 2 results
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
According to your description, here’s my solution.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
According to your description, here’s my solution.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Anonymous , You need to try measure like
Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))
Rolling 12 before 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAXX('Date',dateadd('Date'[Date],-12,month)),-12,MONTH))
For week level with rank you can get similar results
Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
https://www.youtube.com/watch?v=pnAesWxYgJ8

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
10-10-2024 11:04 PM | |||
12-24-2024 01:44 PM | |||
07-31-2024 02:22 AM | |||
09-04-2024 11:16 PM | |||
Anonymous
| 06-19-2024 06:16 PM |
User | Count |
---|---|
127 | |
99 | |
82 | |
52 | |
46 |