This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
I am trying to get rolling 12 month sales, and i want to hide future dates.
Solved! Go to Solution.
Solution that works for me. Combine from 2 articles
https://www.sqlbi.com/articles/rolling-12-months-average-in-dax/
https://www.sqlbi.com/articles/hiding-future-dates-for-calculations-in-dax/
Solution that works for me. Combine from 2 articles
https://www.sqlbi.com/articles/rolling-12-months-average-in-dax/
https://www.sqlbi.com/articles/hiding-future-dates-for-calculations-in-dax/
Hi,
Share some data, explain the question and show the expected result.
Hi @vejas
SQLBI recently has published a blog about this kind of calculation: https://www.sqlbi.com/articles/previous-year-up-to-a-certain-date/
You can simply add a calculated column which contains 'Date'[IsPast] = TRUE in your formula and the result should show up correctly.
Best,
I dont want to compare periods i want shift back 12 moths every month and calculate sales. Just don't want sales be calculated for future months because they dont have full 12 moths yet.
@vejas My bad explanation.
I mean you can use the principle describes in the blog, but not all.
So in your fact table, you create :
My new aproach is to make a calculated column in calendar table
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 21 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 55 | |
| 54 | |
| 46 | |
| 26 | |
| 24 |