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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
shikhar6339
New Member

Pie chart issue

Hi All,

 

I have a column(column name: ABC) with 800 records. 545 records have value "1" and rest of them has "0".

 

I want to display them in a pie chart as a percentage like 1 has 68% values and 0 has 32% values. However when I put Column ABC in values section of a pie chart, I don't get the desired output. Is there something I am missing?

 

4 REPLIES 4
shikhar6339
New Member

Thank you for your response.

 

Here is the exact scenario:

Team 1Team 2Toss winnerToss decisionWinner
abcxyzabcbatxyz
xyzrstxyzbowlxyz
rstxyzxyzbowlxyz
abcxyzxyzbatabc
xyzabcabcbowlabc
abcrstrstbatrst
rstxyzrstbowlxyz
xyzabcabcbatxyz
abcxyzabcbowlabc
xyzrstxyzbowlrst
rstabcabcbatrst
abcrstabcbowlrst
rstabcrstbowlabc
abcrstrstbatrst
xyzabcxyzbowlxyz
rstxyzxyzbatxyz
abcrstrstbatrst

 

I need to show a pie chart with two values: team batting first won vs team bowling first won.

 

 

See attached PBIX below.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x
Anonymous
Not applicable

With your ABC column, add one more column of your dataset, which counts the number of 1's and 0's to the pie chart. Below I have attached screenshots. 

Do let me know if you have any queries. 

 

1. hp_2198_0-1645390809929.png

2. hp_2198_1-1645390859603.png

3. hp_2198_2-1645390951139.png

 

Also you can add ABC column to both legends and values. then change to COUNT of ABC. Shown below

1.

hp_2198_1-1645391675502.png

2.

 

hp_2198_0-1645391635504.png

 

BOTH WILL HELP YOU TO GIVE SAME RESULT

KNP
Super User
Super User

What are you putting in the Legend?

Try dragging the ABC column to both the legend and the values and see if that helps you any. Otherwise, please provide some more info.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.