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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.