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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Saniat
Helper V
Helper V

Data Label color based on Bar color

Hi,

I would like to implement a conditional colors of Data Label, but the condition is not based on value or aggregate, rather the color of the bar.

For example, I want to get the Label in white if I have black Bar,
Label in orange/yellow if I have plum or berry Bar.
etc. etc.

Is that possible in PBI ?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Saniat ,

 

It's not possbile to set the color of the data label based on the color of bar in the bar chart.

You could submit an idea for the unsupported feature and vote for it: https://ideas.powerbi.com/ideas/.

As a workaround, you may change a visual like the table visual to change colors.

vstephenmsft_2-1649747723624.png

 

Best Regards,

Stephen Tao

 

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
Jmimz74
New Member

You can change the color of the label to whatever you want with the following steps

Select the chart you want to adjust. Go to visualizations tab and select format visual. Scroll down to data labels. Under Apply settings to, select from the drop down the series you want to modify. Under the values, change the color to what you want

Hope this helps!

Jmimz74_0-1686150569908.png

 

Anonymous
Not applicable

Hi @Saniat ,

 

It's not possbile to set the color of the data label based on the color of bar in the bar chart.

You could submit an idea for the unsupported feature and vote for it: https://ideas.powerbi.com/ideas/.

As a workaround, you may change a visual like the table visual to change colors.

vstephenmsft_2-1649747723624.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Saniat , You have option of color and fx(conditional formatting) under data label. But that work on the grand total. not on value of each bar

 

I have applied same conditional formatting logic for bar and label, but all labels are of same color

amitchandak_0-1649157107962.png

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors