Forum Discussion
Display Image based on value
- 8 years ago
Hi Anonymous
Here is a quick and easy way to do it. Drop this calculated measure in and replace the hardcoded values for myVal & myTarget with your own values.
Measure = VAR myVal = 4 VAR myTarget = 0 RETURN IF( myVal <= myTarget , -- THEN -- UNICHAR(128402) , -- Thumbs up! -- ELSE -- UNICHAR(128403) -- Thumbs down )
I LOVE THIS and am hoping I can get it to work for my needs (if thumbs up was green and down was red that'd be even better but if not this meets the needs)
So I think the thumb is meeting extra complication because for the visualization of the 95% on the left and the 93% on the right, the only difference between these two donuts is I've used a filter to filter for only the % favorable for that specific question.
For gained an maintained the target is 88% or above so the thumbs up is right, but when I changed myTarget to 95, then gained and maintained would not be hitting the mark and should be thumbs down.
So either, can you help me build this formula to also filter for specific question or do I have to make calcualted measures for each question % favorable??
Thank you!!