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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
sdhn
Responsive Resident
Responsive Resident

change color of a Bar thru code.

Hi All,

 

I have a chart I want to change color of a Bar thru code.  Just one Bar.

 

ISSUE:

I have created following graph for my Dashboard report.  But some how not able to change the color of one of a top bar. I selected green but still is showing grey color.

Below bar is working fine, allow me to change the color.  

 

Graph name is Bullet Chart by OKVIZ

 

Values for above bar are coming from Measure. This is a perecentage format.  -- change only this bar.  

Values from below Bar are coming from calculated column. This is a whole number format.  -- this bar working fine. 

 

sdhn_0-1644958434485.png

 

 

 

 

 

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @sdhn
Please check if the solution in this thread could work for you.
Bullet chart OK viz conditional colour doesn't apply if target is blank 

it is not possible to conditionally colour code a visual if the target is Blank(), so a measure such as the following would be required.

= IF (ISBLANK(MeasureName), 0, MeasureName)

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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