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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
e175429
Helper IV
Helper IV

Data Labels on a Line Graph

Hello,

 

How do I get my data labels to show % instead of whole numbers?

This is my graph currently:

e175429_2-1753384921631.png

As you see, when I hover over a data point, it shows whole numbers.

 

I took these steps to try to get it to show %'s:

e175429_1-1753384868908.png

 

This is the result:

e175429_3-1753385170850.png

 

As you see, the %'s are sooooo wrong.

 

From the 1st image, in Jan-24, you see I have a total of 980.

 

930/980 = 95%

50/980   = 5%

 

These are the 2 %'s that sould be shown.

1 ACCEPTED SOLUTION
wardy912
Super User
Super User

Hi @e175429 

 

 When you select 'Show value as percent of grand total', it's giving a percentage of all the data, so your percentages are correct, as it's showing Jan requests closed is 4% of all requests closed in all months.

You need to add a measures that compare the values against eachother, then change the format to percentage and add as tooltips. Change the below measures to fit your data:

Sales Amount by Due Date % = 
DIVIDE([Sales Amount by Due Date], [Sum of Sales Amount] + [Sales Amount by Due Date], 0)

 

Sales Amount % = 
DIVIDE([Sum of Sales Amount], [Sum of Sales Amount] + [Sales Amount by Due Date], 0)

 

You'll then have the following result (I'll leave the GT% in as an example)

 

wardy912_0-1753387373248.png

I hope this helps, please give a thumbs up and mark as solved if it does, thanks!

View solution in original post

3 REPLIES 3
wardy912
Super User
Super User

Hi @e175429 

 

 When you select 'Show value as percent of grand total', it's giving a percentage of all the data, so your percentages are correct, as it's showing Jan requests closed is 4% of all requests closed in all months.

You need to add a measures that compare the values against eachother, then change the format to percentage and add as tooltips. Change the below measures to fit your data:

Sales Amount by Due Date % = 
DIVIDE([Sales Amount by Due Date], [Sum of Sales Amount] + [Sales Amount by Due Date], 0)

 

Sales Amount % = 
DIVIDE([Sum of Sales Amount], [Sum of Sales Amount] + [Sales Amount by Due Date], 0)

 

You'll then have the following result (I'll leave the GT% in as an example)

 

wardy912_0-1753387373248.png

I hope this helps, please give a thumbs up and mark as solved if it does, thanks!

Thank you, this worked.

HearnTexas
New Member

You will need to create a DAX measure to calculate that percentage. It's best to use the Divide function.

For example 

PercentageOfLastYearSales =
DIVIDE(
    [CurrentYearSales],
    [PreviousYearSales],
    0
)

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.