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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
e175429
Helper IV
Helper IV

Data Label on Graph

Hey all,

 

I am able to get my graph to show EITHER whole numbers OR %. Is there a way to get both shown on the same graph?

e175429_0-1760634792723.pnge175429_1-1760634841009.png

 

Thank you!

1 ACCEPTED SOLUTION

Ok, that's fine. You will need to create some measures- similar to the following- use whatever your actual table and field names are.

 

Count of Name = COUNT(Names[Name])
Count of All Names = COUNTROWS(ALL(Names))
Percent of Total Names = DIVIDE([Count of Name],[Count of All Names],0)
 
Then put Percent of Total Names into Data under Detail on the Data Labels section of the visual settings.
 
I've updated the .pbix file.

 

View solution in original post

8 REPLIES 8
MasonMA
Super User
Super User

Hi, you may use this DAX sample from my report. 

Request Count & % of Total = 
VAR CurrentCount = COUNT('table'[Request ID])
VAR TotalCount = CALCULATE(
    COUNT('table'[Request ID]),
    ALLSELECTED()     --Adjust your filter modifier accordingly 
)
VAR Percentage = DIVIDE(CurrentCount, TotalCount, 0)
RETURN
CurrentCount & " (" & FORMAT(Percentage, "0.0%") & ")"

and add it in 

MasonMA_0-1760636545570.png

MasonMA_0-1760636315354.png

djurecic
Super User
Super User

Hi @e175429 ,

 Please see the attached .pbix file. You can do this by creating an additional measure and putting it in the Detail section of Data Labels on your visual. Please let me know if you have any questions about this approach.

djurecicK2_0-1760635907146.png

djurecicK2_1-1760635929220.png

 

So, i don't have a number column like your sales column, I just have a column of user names like this:

e175429_3-1760637082277.png

 

And to create the graph I just put the user name colum on the x and y axis to see how many each user did:

e175429_2-1760636967781.png

 

So I can't sum a column of names.

 

Ok, that's fine. You will need to create some measures- similar to the following- use whatever your actual table and field names are.

 

Count of Name = COUNT(Names[Name])
Count of All Names = COUNTROWS(ALL(Names))
Percent of Total Names = DIVIDE([Count of Name],[Count of All Names],0)
 
Then put Percent of Total Names into Data under Detail on the Data Labels section of the visual settings.
 
I've updated the .pbix file.

 

My measures:

e175429_0-1760641235921.png

e175429_1-1760641251092.png

e175429_2-1760641282468.png

My graph:

e175429_3-1760641343779.png

 

Any idea why they all say 100%?

 

 

You just need to add ALL() around 'individ Project2'

 

count of all = COUNTROWS(ALL('individ Project2'))

 

https://learn.microsoft.com/en-us/dax/all-function-dax

Thank you for your assistance!

You're welcome! Please "Accept as solution" if it has solved the issue.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.