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
BPTBPTBPT
Helper II
Helper II

chart with two lines: colored data label (values) per line?

Is there a way to get the data labels/value a different color for each line in my line chart?

So the red line needs red labeling, the blue one blue labeling.

1 ACCEPTED SOLUTION

Whoops - I totally mis-read that. OK, once you have your two measures in, go to the formatting and turn data labels on. Then, in Apply settings to section click one of the two measures, then you can go adjust the color for the font in Value and or the background from Background.

audreygerred_0-1729271207340.png

 

Here's how mine looks:

audreygerred_1-1729271267780.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

8 REPLIES 8
audreygerred
Super User
Super User

Hi! Yes, just put two different measures in the values section, then you can go to the format pane and go into the Lines section, select which measure you want to color and then choose the color.

audreygerred_0-1729259295115.pngaudreygerred_1-1729259317944.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thanks but I am not referring to the colors of the lines (already got a blue and a red one). I need the corresponding data labels (their values) to be the same color.

Whoops - I totally mis-read that. OK, once you have your two measures in, go to the formatting and turn data labels on. Then, in Apply settings to section click one of the two measures, then you can go adjust the color for the font in Value and or the background from Background.

audreygerred_0-1729271207340.png

 

Here's how mine looks:

audreygerred_1-1729271267780.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thanks, that was it! Did not see that earlier.

Anytime! Sorry I mis-read it the first time! Have a fantastic weekend!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





NordicDrow
Helper I
Helper I

Hello there!

Yes, if you go to visual formatting -> Data Labels -> Value -> Color -> fx.
From there you can create a rule to color them based on the group columns.
You might need to apply the same condition to the line color itself to ensure it's the same.

Hope it helps!

Can you help me with the rule? QAs far as I can see, I can only create a rule based on ONE of the two measures (lines in my chart). I don't see a way to make the data labels the color of the corresponding line.

This is how I setted up one I created quickly:

NordicDrow_0-1729269918101.png



Hope it helps, otherwise if you can give a sample data or sample file I can further help you out.

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.

Top Solution Authors