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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
elcamino
Frequent Visitor

Donut Chart - dynamic percentage

Hello everyone,

 

This donut chart shows the total of area and the percentage. It shows the correct data.

elcamino_1-1773933142450.png

 

However, when i select one store it shows the right area, but it still shows 100%. When, in fact, the store chosen do not correspond to 100% of the total area - it should be 75/181,39*100 = 41,35% .

elcamino_2-1773933293721.png

 

How to solve this?

 

Thank you very much

 

 

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @elcamino 

 

When filters are applied, Power BI calculates pie/donot chart percentages based on the total of the visible crows. So, if only a single category is selected, the numerator and denominator are the same, resulting in 100%. Unfortunately, in donut and pie charts, data labels cannot be set to use a separate measure for custom percentages. A workaround is to use Deneb, though this requires some coding.

 

Please see the attached sample pbix

danextian_0-1773992442120.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.

View solution in original post

3 REPLIES 3
cengizhanarslan
Super User
Super User

Once you filter to a single store, Power BI calculates the label percentage against the visible total inside that visual, so that slice becomes 100% of the filtered donut, not 41.35% of the original total.

 

The practical wokarounds are:

  • keep the donut for the area value and show the true percentage in a separate card/measure
  • or use a custom visual like Deneb if you want the donut label itself to show your custom percentage.
_________________________________________________________
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 @elcamino 

 

When filters are applied, Power BI calculates pie/donot chart percentages based on the total of the visible crows. So, if only a single category is selected, the numerator and denominator are the same, resulting in 100%. Unfortunately, in donut and pie charts, data labels cannot be set to use a separate measure for custom percentages. A workaround is to use Deneb, though this requires some coding.

 

Please see the attached sample pbix

danextian_0-1773992442120.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.
mizan2390
Resolver III
Resolver III

hi @elcamino, the problem with context transition. this whats happening. When you are using the measure, its taking consideration of totals on the current filter context. So when you are using sclicer, the current filter calculate the totals and the chart is calculating the % based upon that total. As you are using the chart formating pane to show data and percentage of total, the native "% of total" label can only calculate a percentage based on the data currently available inside that specific visual's query.
You need to use explicit measure using ALL or ALLSELECTED based on your requirment and use seperate visual. I donut chart, it wont be possible.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 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.