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
Deus_Kapinga
Regular Visitor

Power Bi Report-Visual

Hi Everyone,

Can I get your support? I want to draw a donut/pie chart, but the labels I want to be the percentage of the total, and the values to be from another cell column. For example, in the data below, I want the data labels to be the percentage of the total of the CYP and the values to be from the Number of Items, as shown in the pie chart below.

 

Product Name

Number of Items

CYP

Condoms

44089

367

implants

2627

8206

IUCD

328

1509

Vasectomy

27

330

Deus_Kapinga_1-1744382441244.png

Regards,

Deus

 

 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Deus_Kapinga 

Create a new measure for the percentage of total CYP:

DAX
Percentage of Total CYP =
DIVIDE(
SUM('YourTableName'[CYP]),
CALCULATE(SUM('YourTableName'[CYP]), ALL('YourTableName'))
)

 

In the Visualizations pane, select the Donut chart or Pie chart icon.
Drag the "Product Name" field to the "Legend" area.
Drag the "Number of Items" field to the "Values" area.
Drag the "Percentage of Total CYP" measure to the "Tooltips" area.

Click on the chart to select it.
In the Visualizations pane, go to the "Format" section (paint roller icon).
Expand the "Detail labels" section.
Set the "Label style" to "Data value".
Turn on the "Percentage" option to show the percentage of the total CYP.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
Deus_Kapinga
Regular Visitor

@bhanu_gautam, thank you for your support. I have worked as you have guided. However, during formatting, I can't see the "Turn on the 'Percentage' option to show the percentage of the total CYP." These are the only options available in the Detail labels.

 

Deus_Kapinga_0-1744452740176.png

I will appreciate your support. 

bhanu_gautam
Super User
Super User

@Deus_Kapinga 

Create a new measure for the percentage of total CYP:

DAX
Percentage of Total CYP =
DIVIDE(
SUM('YourTableName'[CYP]),
CALCULATE(SUM('YourTableName'[CYP]), ALL('YourTableName'))
)

 

In the Visualizations pane, select the Donut chart or Pie chart icon.
Drag the "Product Name" field to the "Legend" area.
Drag the "Number of Items" field to the "Values" area.
Drag the "Percentage of Total CYP" measure to the "Tooltips" area.

Click on the chart to select it.
In the Visualizations pane, go to the "Format" section (paint roller icon).
Expand the "Detail labels" section.
Set the "Label style" to "Data value".
Turn on the "Percentage" option to show the percentage of the total CYP.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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