Forum Discussion

dw700d's avatar
dw700d
Icon for Post Patron rankPost Patron
6 years ago
Solved

Card with conditional column comparing dynamic numbers

I would lilke to create a card with conditional formating that compares two dynamic columns in seprate tables,  Column1 calculates "days until funds must be spent", column 2 calculates "current pace to spend funds". I would like to create a card with conditional formating that makes the background of column 2 red if the value is higherbthan column1 and makes it green if the value is lower than column1. Both values will change everday. I think I might be able to use card with states but I dont how to compare the two dynamic columns. I only see the option to compare to a static number.  Any one have any suggestions?

                           TABLE 1

Contribution Type      Days until funds must be spent

Contribution 1

                  775
Contribution 2                  887

                            TABLE2

Contribution Type      Current Pace to Spend Funds

Contribution 1

                733
Contribution 2                917

 

 

 

 

  • Hi dw700d , 

    I think you could set conditional formatting in table directly, you could refer to my sample for details.

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • Hi dw700d ,

     

    I might suggest a slightly different method - why not make a measure that does the calculation that you are thinking about and then use the result from that measure to present your color - a "greater than" is green or red or whatever.  That might be a bit easier than trying to get the conditional format within the card itself.

     

    I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!
  • dax's avatar
    dax
    Icon for Community Support rankCommunity Support

    Hi dw700d , 

    I think you could set conditional formatting in table directly, you could refer to my sample for details.

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.