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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Hancy0733
New Member

How to custom data label colors in a line chart

Hi everyone,

 

I would like to ask if it’s possible to set data label colors in a Power BI line chart so that positive numbers appear in black and negative numbers appear in red.

 

I know we can change the overall data label color, but I haven’t found a way to apply conditional formatting to data labels in a line chart.

IMG_0394.jpeg

Is there any workaround or setting that can achieve this?

Thanks in advance!

3 REPLIES 3
Shubham_rai955
Responsive Resident
Responsive Resident

  • Power BI does not support conditional formatting for line chart data labels as of now.

  • As a workaround, you can make two separate measures: one for positive values and one for negative values.

  • Then, plot these as separate series on your line chart, assign a different color to each, and only turn on data labels for each matching line.

  • This way, positive and negative values appear in different colors, even though this uses two lines instead of one.

This workaround lets you visually separate positive and negative values, but not on the very same line series

v-achippa
Community Support
Community Support

Hi @Hancy0733,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @FarhanJeelani for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

FarhanJeelani
Super User
Super User

Hi @Hancy0733 ,

 

Select the Line visual.

Then, navigate to the Data labels section and choose the specific line for which you want to apply color formatting.

FarhanJeelani_1-1760443512518.png

Now, go to the Value option under Data labels, and click the Fx button to apply conditional formatting for color.

FarhanJeelani_0-1760443439568.png

Now, configure the colors based on your defined rules, and then save the changes.

FarhanJeelani_2-1760443688979.png

Please mark this post as solution if it helps you. Appreciate Kudos.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.