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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Keep font color of inside data labels as default and outside data labels changed as required

How to keep the font color of inside (overflow text) data labels in a pie chart as default (white) and the outside data labels can be changed as required?

amlanjyoti_0-1669890975879.png

For instance, in the image, I want "0%" to be shown as it is in white but the other data labels I want a different font color. Please help. 

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

First, 0% wion't be shown in the visual. 

 

If you want to format other data labels with a different color, please try the following steps.

 

This is my test table:

vyadongfmsft_0-1669958998963.png

 

Create a measure:

Measure = IF(MAX('Table'[Percentage]) <= 0.1,"red","green")

 

Select conditional formatting in data labels:

 

vyadongfmsft_1-1669959173891.png

 

Field value - Measure just created:

vyadongfmsft_2-1669959242488.png

 

Last, you can set different colors for data labels:

vyadongfmsft_4-1669959469908.png

 

 

Best regards,

Yadong Fang

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

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

First, 0% wion't be shown in the visual. 

 

If you want to format other data labels with a different color, please try the following steps.

 

This is my test table:

vyadongfmsft_0-1669958998963.png

 

Create a measure:

Measure = IF(MAX('Table'[Percentage]) <= 0.1,"red","green")

 

Select conditional formatting in data labels:

 

vyadongfmsft_1-1669959173891.png

 

Field value - Measure just created:

vyadongfmsft_2-1669959242488.png

 

Last, you can set different colors for data labels:

vyadongfmsft_4-1669959469908.png

 

 

Best regards,

Yadong Fang

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

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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