Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |