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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Luukv93
Frequent Visitor

Problem: include % and value in graph

Hello,

 

Is it possible to include both % and the value in a graph (like shown in below image) ?

 

tempsnip.png

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

hi, @Luukv93

Power BI does not handle alternate or customer data labels very well but here is a hack that might work for you.

 

Make your chart a Line and Column Mixed chart put the Count on the Columns and PCT on the Line. 

In the formatting panel

  1. Turn on Data Lables
  2. Under Y Axis be sure Show Secondary is turned on and make the text color the same as your background if you want to hide it
  3. Under Shapes set the Sroke Width to 0 and show markers off (this turns off the line and you only see the labels

You get what you asked for but I don't really like the way its laid out - inconsitent placment sometime % is below the Value and other time above.

6.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
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

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Luukv93

Power BI does not handle alternate or customer data labels very well but here is a hack that might work for you.

 

Make your chart a Line and Column Mixed chart put the Count on the Columns and PCT on the Line. 

In the formatting panel

  1. Turn on Data Lables
  2. Under Y Axis be sure Show Secondary is turned on and make the text color the same as your background if you want to hide it
  3. Under Shapes set the Sroke Width to 0 and show markers off (this turns off the line and you only see the labels

You get what you asked for but I don't really like the way its laid out - inconsitent placment sometime % is below the Value and other time above.

6.JPG

 

Best Regards,

Lin

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

Hi Lin,

This hack works great! Thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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