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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
KK111
Frequent Visitor

Conditional Formating

Hello,

 

I am trying to apply conditional formatting for value "Yield". However, I am struggling to understand what rule to apply to meet my request.  I want the value under Yield be green if the value is equals or greater than the value in STD yield column.  Every raw is a different product , so I cannot use regular rules like "if yield is > 50" because each product has it own standard.  Thank you. Any help is appreciated! 

 

ProductYieldStandard Yield
A7061.5
B51.552
C7570

 

 

 

1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

You then need to create a measure where you use IF condition.

aj1973_0-1645125016352.png

Use the measure here

aj1973_1-1645125071759.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @KK111,

Multiple rules for conditional formatting can be configured. I think you can add a new rule for each of your requirements.

 

I hope this helps. 

KK111
Frequent Visitor

Hi Amine ,

Thank you. However, if I understand your colution correctly, it would not work in the case below: 

I need it to be red because the yield is lower than standard yield. So, I cannot use a rule if yield value is > a certain number. What I am trying to do is to set up a rule when yield value is >= Standard Yield value than green, When value is , Standard Yield value than red.  But I am struggling to undersntad how to set up such rule. Thank you

 

YieldStandard Yield 
40%50%
aj1973
Community Champion
Community Champion

You then need to create a measure where you use IF condition.

aj1973_0-1645125016352.png

Use the measure here

aj1973_1-1645125071759.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Thank you so much, @aj1973 !! This made my day.  I just followed you on all social media. 

 

Do you know if it is possible to do the same but for the columns? 

 

KatenokKatya_0-1658247116244.png

Thanks 

aj1973
Community Champion
Community Champion

hi @KK111 

like this?

aj1973_0-1645115073757.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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