Forum Discussion
Anonymous
8 years agoNot applicable
Display Image based on value
Hi All, I have data percentage that need to display using card custom visual. Then I want to show the picture changes according to the data percentage. Example : If value percentage is positi...
- 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 )
Phil_Seamark
8 years agoMicrosoft Employee
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
)
Anonymous
8 years agoNot applicable
Hi Phil_Seamark,
Can I chnage the UNICAR code to image URL?
Where should I find the UNICHAR code for other code or picture?
Thanks
- Cristian_Pasten3 years agoNew Member