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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
gmasta1129
Resolver I
Resolver I

Pie Chart Question

Hello,

I am having trouble creating a pie chart. 

 

My table contains two columns

1. Facility Code

2. Policy #

 

Facility Code       Policy #

12345                    1

54321                    1&2

64589                    2&4&3

21180                     5&3

90612                     1

 

I would like to put this in a pie chart where it shows ex: Two facilities are under policy #2, One facility is under policy #4, Three facilities are under policy #1 and Two facilities are under policy #2. The issue is when a facility code contains more than one policy number.  We tried to split the columns but that did not work either.  Is this even possible to do? 

 

Thanks in advance. 

 

1 ACCEPTED SOLUTION
gmasta1129
Resolver I
Resolver I

Hello, 

 

We figured it out.  We created additional columns in power query using if statement formula and added those columns to the pie chart. 

View solution in original post

4 REPLIES 4
v-aatheeque
Community Support
Community Support

Hi @gmasta1129 

We wanted to follow up to check if you’ve had an opportunity to review the previous responses. If you require further assistance, please don’t hesitate to let us know.

gmasta1129
Resolver I
Resolver I

Hello, 

 

We figured it out.  We created additional columns in power query using if statement formula and added those columns to the pie chart. 

jgeddes
Super User
Super User

You can get a result like this...

jgeddes_0-1772814730410.png

by splitting the policy column into new rows. 
I have attached an example pbix.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @gmasta1129 

Have you had a chance to look through the responses shared earlier? If anything is still unclear, we’ll be happy to provide additional support.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.