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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors