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.
Today, I have a separate Date table and a Sales table.
This time I was creating a rolling average with a quick measure, using the Sales amount field in the sales table and the primary Date field on the date table.
The problem is when I am trying to filter the year using a slicer, the rolling average graph is showing 12 month forward. This makes sense since it got data from 12 months back. But how do I stop it from showing dates 12m forward?
I can't figure this one out.
Instead of pasting the examples in here, I have shared a simple Power BI file in the link below.
The screenshow shows the problem:
Solved! Go to Solution.
You may try adding IF.
RETURN IF ( YEAR ( __LAST_DATE ) IN ALLSELECTED ( 'Calendar'[Year] ),
You may try adding IF.
RETURN IF ( YEAR ( __LAST_DATE ) IN ALLSELECTED ( 'Calendar'[Year] ),
Thanks!
Really saved my day, and week, and year!
How can I do that in my case as shown below?
I don't need the future dates (oct to dec 2020):
My DAX for the one measure used in this axis:
Thanks in advance.
Marcos
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 |
---|---|
106 | |
98 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |