Forum Discussion

karma's avatar
karma
Advocate II
4 years ago
Solved

Dynamic Card Visual's Color

Is it possible to change the background colour of a card visual dynamically based upon the measure/column that we are using in the card?
 
Eg- if the value is below 10 i want to display Red colour
If it is 20 then green etc
  • Hi karma ,

    Yes, it can be achieved using conditional formatting of the visual.

    Please try the below steps:
    1) Click on your card visual and go to your format options
    2) In format, click on background colour
    turn the toggle on and click on fx (refer screenshot below)


    3)After clicking on fx, a window would pop up:
    in format style- Select Rule
    what field should we base it on? - Select your measure/calculation
    In rules give your conditions:
    eg- if value > 10 then select your desired colour(Refer screenshot below):

     

    Then click on OK.

    karma  if this helps you then please mark it as a solution & hit the thumbs up. Thank you.

     

     

3 Replies

  • truptis's avatar
    truptis
    Community Champion

    Hi karma ,

    Yes, it can be achieved using conditional formatting of the visual.

    Please try the below steps:
    1) Click on your card visual and go to your format options
    2) In format, click on background colour
    turn the toggle on and click on fx (refer screenshot below)


    3)After clicking on fx, a window would pop up:
    in format style- Select Rule
    what field should we base it on? - Select your measure/calculation
    In rules give your conditions:
    eg- if value > 10 then select your desired colour(Refer screenshot below):

     

    Then click on OK.

    karma  if this helps you then please mark it as a solution & hit the thumbs up. Thank you.

     

     

    • karma's avatar
      karma
      Advocate II

      Thank you truptis 

      That worked just as required.

       

      Thanks for the detailed reply. Cheers!!!