Forum Discussion
Gauge Chart Dynamic Maximum Value
- Anonymous4 years ago
Hi tamerj1
I got it to work!! Thank you so so much for helping me out!Current CTR (Gauge) = CALCULATE( [Avg CTR], FILTER( 'GSC query analysis', RELATED('Calendar Lookup'[Start of Month]) = MAXX('Calendar Lookup', 'Calendar Lookup'[Start of Month]) ) )
Anonymous
For some reason, no matter what we do ot only shows the value of the last date!
Now you mentioned that it always show the last date, I realized it is because I set the visual filter to be "Start of Month" - "Top 1" - "Latest Start of Month" so that I can show the current CTR (0.07), but then it will cause the Max CTR to not work.
If I clear that fitler, the Max CTR will be correct! but then the current CTR will be incorrect.
That being said, we can tackle it from a different direction, trying to create a new measure to get the current CTR for the gauge chart. Do you know how I can write the code to get the current CTR for the gauge chart?
- Anonymous4 years agoNot applicable
Hi tamerj1
I got it to work!! Thank you so so much for helping me out!Current CTR (Gauge) = CALCULATE( [Avg CTR], FILTER( 'GSC query analysis', RELATED('Calendar Lookup'[Start of Month]) = MAXX('Calendar Lookup', 'Calendar Lookup'[Start of Month]) ) )