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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
Community Champion
Community Champion

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

djurecicK2
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
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.