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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.