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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JorgiaM
Regular Visitor

Help using conditional formatting with a measure

Hi everyone,

 

I have written a measure which I have linked to conditional formatting. So in a short explanation, if the value for my parameter is good it is coded with the number 1 and the cell is conditioned to turn green. If the value is bad it is coded with the number 2 and the cell is conditioned to turn red and if it needs looking in to it is coded with the value 3 and the cell turns orange. 

I am doing analysis of biological results in soil. All the AMN values that are red should be, but the values in total carbon and nitrogen etc should not be red they should be green. So some how it seems like it is linking with the first values in column one (AMN). Can any body provide an answer as to why? See attachments of my table and coding .

 

Thanks!

Jorgia Soil biological coding 3.JPG

 

Soil biological coding 2.JPG

 

Soil biological coding 1.JPG

 

Soil biological table.JPG

 

2 REPLIES 2
amitchandak
Super User
Super User

@JorgiaM , You need to change the order like <= 20 should come before <=150 as 20 is also less than 150 so it will never reach that condition

 

order should be

<= 20

<=150

>150

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for your response. I have updated that but it is still showing red through the columns as before..

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.