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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
fsfs
Helper I
Helper I

adding data labels to 100% stacked bar chart

hi

 

I would like the bar to not only show % of total, but also the name of category next to it (very similar to detail labels in pie chart)

 

how can I do that?

 

 

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

Hi, @fsfs ;

You could add custom power bi visual as follows:

vyalanwumsft_0-1627367566941.png

The final output is shown below:

vyalanwumsft_1-1627367797169.png

Best Regards,
Community Support Team_ Yalan Wu
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

5 REPLIES 5
v-yalanwu-msft
Community Support
Community Support

Hi, @fsfs  ;

Is the above answer helpful to you? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @fsfs ;

You could add custom power bi visual as follows:

vyalanwumsft_0-1627367566941.png

The final output is shown below:

vyalanwumsft_1-1627367797169.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

fsfs
Helper I
Helper I

I'll try to rephrase it

I have it like this:

*cat A   *cat B

_______

|         |

55%|

|______|

|         |

45%|

|______|

 

I want it like this   

 

_______

cat A|

55%|

|______|

| cat B|

45%|

|______|

 

or like this

 

_______

|         |

55%| --- cat A

|______|

|         |

45%| --- cat B

|______|

  

v-yalanwu-msft
Community Support
Community Support

Hi, @fsfs ;

According your description, you could create a measure to calculate the percentage of every category. I create a simple example and create a measure as follows:

sales%1 = CALCULATE(SUM([Sales EUR]),ALLEXCEPT('Table','Table'[Year],'Table'[category]))/CALCULATE(SUM([Sales EUR]),ALLEXCEPT('Table','Table'[Year]))

then change the visualization's setting.

vyalanwumsft_0-1626244322220.png vyalanwumsft_1-1626244432351.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@fsfs , You need to use a measure that % percent. If you want to show percent

 

Assume you have measure

Axis is using col1

 

then use measure

divide([measure], calculate([measure], filter(allselected(Table), Table[Col1] = max(Table[Col1]))))

 

if need use a stacked line and show measure

calculate([measure], filter(allselected(Table), Table[Col1] = max(Table[Col1])))

 

on that and show labels and change line color same as background color

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors