Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

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...
  • Phil_Seamark's avatar
    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
                )