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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
HaiVN
Helper III
Helper III

100% stacked Bar chart showing both number and percentage

Hello community,
I would like to create a '100% stacked bar chart' wich shows both number and percentage with the "; " or "---" between them! Is that a method to do it? 

HaiVN_0-1772627152932.png
Thank You!

 

2 ACCEPTED SOLUTIONS
cengizhanarslan
Super User
Super User

Step 1)  Create a combined label:

Value & % =
FORMAT([Total Value], "#,##0")
    & " ("
    & FORMAT([% of Total], "0.0%")
    & ")"

 

Step 2) Enable Data labels → Values → Custom label and use the combined measure.

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

View solution in original post

No problem - then you'll need to do a measure here which is composed of the value and percentage

ValueWithPercentage = 
VAR CurrentValue = SUM(YourTable[YourValueColumn])
VAR TotalValue = CALCULATE(SUM(YourTable[YourValueColumn]), ALLSELECTED(YourTable[YourCategoryColumn]))
VAR Percentage = DIVIDE(CurrentValue, TotalValue, 0)
RETURN
    CurrentValue & " - " & FORMAT(Percentage, "0%")


Something like this should work. Basically you want CurrentValue to calc the number, TotalValue to calc the denomenator, then Percentage from the previous two.

The last line then formats them together. Have a play and you should be able to get this to work, then put this field into the Value for the chart.

View solution in original post

7 REPLIES 7
V-yubandi-msft
Community Support
Community Support

Hi @HaiVN ,

We haven’t received a response from your end yet. Please let us know whether the issue has been resolved or if you’re still facing any difficulties. Feel free to reach out if you need further assistance.

 

Thank you.

V-yubandi-msft
Community Support
Community Support

Hi @HaiVN ,

@cengizhanarslan , has correctly responded to the query. If you continue to experience any issues or need further clarification, please feel free to let us know.

 

Thank you for your helpful response, @cengizhanarslan @danextian .

 

Regards,
Yugandhar

cengizhanarslan
Super User
Super User

Step 1)  Create a combined label:

Value & % =
FORMAT([Total Value], "#,##0")
    & " ("
    & FORMAT([% of Total], "0.0%")
    & ")"

 

Step 2) Enable Data labels → Values → Custom label and use the combined measure.

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
danextian
Super User
Super User

Hi @HaiVN 

You can turn on value from the label options

danextian_0-1772628989985.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@danextian @JamieHolding  I am sorry I posted wrong message! I mean I need  "; " or "---" between number and persentage! I have edited post!

No problem - then you'll need to do a measure here which is composed of the value and percentage

ValueWithPercentage = 
VAR CurrentValue = SUM(YourTable[YourValueColumn])
VAR TotalValue = CALCULATE(SUM(YourTable[YourValueColumn]), ALLSELECTED(YourTable[YourCategoryColumn]))
VAR Percentage = DIVIDE(CurrentValue, TotalValue, 0)
RETURN
    CurrentValue & " - " & FORMAT(Percentage, "0%")


Something like this should work. Basically you want CurrentValue to calc the number, TotalValue to calc the denomenator, then Percentage from the previous two.

The last line then formats them together. Have a play and you should be able to get this to work, then put this field into the Value for the chart.

JamieHolding
Resolver I
Resolver I

Yes.

To show the value, go into Data labels>Value>Turn it on
To show the %, go into Data labels>Detail>Turn it on>Change Content to Percent of Total

Format each one however you'd like.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

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