Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Emm
Frequent Visitor

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!

1 ACCEPTED SOLUTION
Deku
Super User
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


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

2 REPLIES 2
Emm
Frequent Visitor

It works.  Thank you for your help!

Deku
Super User
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


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.