Forum Discussion

Emm's avatar
Emm
Frequent Visitor
1 year ago
Solved

How to apply conditional formatting based on the Minimum column?

The Sold column in the Result is calculated measure.  How can I apply the conditional formatting to turn the cell red when the Sold column is less than the Minimum colum (fixed value) value as shown in the Result below?  

 

There are 2 tables: Table1 

FileNameItemsDateTotalNumTotalSpoiled
ap20250228-01Apple3/4/202520010
ap20250228-02Apple3/4/202515030
p20250228-01Pear3/4/2025453
p20250228-02Pear3/4/202510010
p20250228-03Pear3/4/202510010
Or20250228-01Orange3/4/202515020
Or20250228-02Orange3/4/202510010
Or20250228-03Orange3/4/2025800
Or20250228-04Orange3/4/2025650
Or20250228-05Orange3/4/2025804
Or20250228-06Orange3/4/2025905
Or20250228-07Orange3/4/2025550
On20250228-01Onion3/4/202520010
On20250228-02Onion3/4/20251005
On20250228-03Onion3/4/202518020

 

Table2:  

SourceTargetMinimum
Apple23
Orange74
Pear32
Onion31
Pepper11

 

Result:

SourceSoldTargetMinimum
Apple243
Orange754
Pear332
Onion321
Pepper011

 

Thank you!

  • SoldLessMin = If( [Sold] < [minimum], "Red" )

     

    Follow this guide to apply. You can replace the red string with a hex code for a particular shade of red

2 Replies

  • Emm's avatar
    Emm
    Frequent Visitor

    It works.  Thank you for your help!

  • Deku's avatar
    Deku
    Super User

    SoldLessMin = If( [Sold] < [minimum], "Red" )

     

    Follow this guide to apply. You can replace the red string with a hex code for a particular shade of red