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
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
86 | |
73 | |
57 | |
52 |
User | Count |
---|---|
197 | |
133 | |
107 | |
69 | |
65 |