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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
mahitham
Helper I
Helper I

Table Help

Hi,

 

Can any one please help me to show above 30.0% values in Green color and below 30.0% values in red in Profit Margin column in the straight table.

 

I have highlited the expression used in  Profit Margin column in the below image.

 

Please help me on this.

 

 

Color expression.png

 

Thanks in advance.

2 ACCEPTED SOLUTIONS

Hi 

I have tried the conditional formatting for Profit margin like below

I need to show above 30.0% values in Green and below 30.0%values in red  but all are showing red by using below rule.

Please let me know am i missed any thing.

 

I am new to power BI.

 

Thanks in advance

Conditional Formatting.png

 

all red.png

 

 

View solution in original post

v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @mahitham,

Based on my research, you could use the 'conditional formatting color-by-rules' function to solve your problem, you could refer to below link:

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-rules

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @mahitham,

Based on my research, you could use the 'conditional formatting color-by-rules' function to solve your problem, you could refer to below link:

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-rules

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PattemManohar
Community Champion
Community Champion

@mahitham Please try "Conditional Formatting" 





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Hi 

I have tried the conditional formatting for Profit margin like below

I need to show above 30.0% values in Green and below 30.0%values in red  but all are showing red by using below rule.

Please let me know am i missed any thing.

 

I am new to power BI.

 

Thanks in advance

Conditional Formatting.png

 

all red.png

 

 

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors