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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Conditional Color Grafica Power BI

Good evening my friends,

I'm trying to color the bars following a conditional IF, the data if the bars exceed the value of 70 are marked in green otherwise they are marked in red, but at the time of coloring there is data that is below and I mark them in green.

I did create a measure called Maximus = 70

and for bars use this Barras_OEE = IF ('OEE measurements per line' [% OEE]> = [Maximum OEE]; "#adff2f"; "#ff4b2f")
* OEE measurements would be the table below

Alexgamb20_0-1627518118603.png

myvalue
January 62,00
February 68,00
March 64,00
April 89,00
mayonnaise 58,00
June 92,00
July 66,00
August 91,00
September 62,00
October 81,00
November 67,00
December 83,00
3 REPLIES 3
Anonymous
Not applicable

Hi @Alexgamb20,

Can you please share a pbix file with some dummy data and expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Syndicate_Admin , looking at your table measure would be

 

Barras_OEE = IF ('OEE measurements per line' [value] > =70 ; "#adff2f"; "#ff4b2f")

 

if this % column, make sure [Maximum OEE] is .7 , then this should work

Barras_OEE = IF ('OEE measurements per line' [% OEE]> = [Maximum OEE]; "#adff2f"; "#ff4b2f")

 

use this in conditional formatting using field value option

 

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

i'm doing what exactly you say.. but sabrias xq me is coloring colors in which they do not meet the condition?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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