Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I've created a measure: LastScheduledSession = max('Sessions'[Date/Time Scheduled])
I want to use that measure as the endpoint for all my charts so all the charts end at the same date and are visually comparable.
[Date/Time Scheduled] is a date. I can drop the measure into a card and it displays the date/time nicely. Yet I can not click or drag that measure into the "End" field in the format of my charts. I can enter "=1" which converts it to "1/1/2001 12:00:00 AM" and that works. If I paste the measure formula in "= max('Sessions'[Date/Time Scheduled])" it has no effect but leaves the formula there AND when I select other charts it just leaves the formula there and also has no effect.
Here's a couple images.
How can I do this? Or solve the problem with some other solution?
Thanks.
Solved! Go to Solution.
Create a measure along the lines of:
Cutting off by date =
VAR CutoffDate =
DATE ( 2020, 03, 31 ) // in your case, your max date measure
RETURN
IF ( MAX ( 'Calendar Table'[Date] ) <= CutoffDate, 1 )
Now select the visual, and add this measure to the "Filters on this visual" in the filter pane and set the value to 1:
Proud to be a Super User!
Paul on Linkedin.
Hi @PaulW2,
Currently, you can't use measure expressions to dynamic control the range of the axis.
I'd like to suggest you write measure expressions to compare the current date and specific date range and return tag. You can use it on 'visual level filter' to filter records.
Applying a measure filter in Power BI
Regards,
Xiaoxin Sheng
Create a measure along the lines of:
Cutting off by date =
VAR CutoffDate =
DATE ( 2020, 03, 31 ) // in your case, your max date measure
RETURN
IF ( MAX ( 'Calendar Table'[Date] ) <= CutoffDate, 1 )
Now select the visual, and add this measure to the "Filters on this visual" in the filter pane and set the value to 1:
Proud to be a Super User!
Paul on Linkedin.
Hi @PaulW2
These links may help you
Dynamic X axis on charts - Power BI - RADACAD
Solved: Dynamic change in X Axis - Microsoft Power BI Community
Regards
Phil
Proud to be a Super User!
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |