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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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