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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to display two measures in a pie chart with legend

I'm developing a pie chart and on it I have a dimenssão and two measures one that shows the percentage compared to the total of the values of other measures, for example, total sales per store and the percentage of each store referring to the total sales.

It is necessary to present the values of the two measures but the maximum I can do however have two measures in the chart is to display one of the two measures

 

In the image below is the chart with only one measure

Untitled.png

 

in the chart below is the same graph two measures

 

 

 

Untitled.png

I would like to stay

 

Untitled1.png


I would like to position the values of a measure next to the legend

note: this chart I need to apply a top 10 rating

 

two measures that I am using

Top 10% Purchase Order Suppliers RANKX = (ALL (DMEGF_Fornecedor [Provider]); CALCULATE (SUM (Facts [Vl_PedidoCompra])))

Purchase Order Total = sum (Facts [Vl_PedidoCompra])

1 ACCEPTED SOLUTION
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi Vitexo87,

 

According to your description, you need to display two measures in a pie chart with legend, right?

 

Based on my research, we can only modify Legend position, title, colr and text size. So display another measure into legend is not supported is current version of Power BI desktop. To work around this issue, you can turn off the legend for your pie chart, and use a table beside the pie chart, and display another measure on that table.
Capture.PNG

 

Regards,

Charlie Liao

View solution in original post

5 REPLIES 5
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi Vitexo87,

 

According to your description, you need to display two measures in a pie chart with legend, right?

 

Based on my research, we can only modify Legend position, title, colr and text size. So display another measure into legend is not supported is current version of Power BI desktop. To work around this issue, you can turn off the legend for your pie chart, and use a table beside the pie chart, and display another measure on that table.
Capture.PNG

 

Regards,

Charlie Liao

asocorro
Skilled Sharer
Skilled Sharer

Legends cannot display values but you could have a separate char tto simulate that.

 

On another note, I would stay away from pie charts: https://www.perceptualedge.com/articles/visual_business_intelligence/save_the_pies_for_dessert.pdf

 

Connect with me in LinkedIn: https://pr.linkedin.com/in/adolfosocorro
Follow me on Twitter: https://twitter.com/AdolfoSocorro
Sean
Community Champion
Community Champion

@Anonymous Create a Table and add these 3 items

 

1) add the Provider field => DMEGF[Provider]

 

2) then the Purchase Order Total = sum (Facts [Vl_PedidoCompra])

 

3) and lastly Top 10% Purchase Order Suppliers RANKX = (ALL (DMEGF_Fornecedor [Provider]); CALCULATE (SUM (Facts [Vl_PedidoCompra])))

4) go to Visual Level Filters and select is less than or equal to 2

 

Anonymous
Not applicable

@Sean

after you have done this as it was set the values in the pie chart?

Sean
Community Champion
Community Champion

@Anonymous I'm not sure what you mean? I tested it...

Top 10 and Top 2.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors