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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Power Query - Pivot a Column Into Multiple Columns

Hi all,

 

Looking for some help with this one.  I have a table with two columns, Sales Order and Invoice.  Sometimes, there are multiple Invoices per Sales Order.  I'd like to break the INVOICENUMBER field in the photo below out into multiple fields in the Power Query Editor, so that sales order (circled below) 3010000014 and 3010000028 will show two columns for INVOICENUMBER instead of just one (INVOICENUMBER_1, INVOICENUMBER_2, etc).  These are two examples where two invoices occurred for one Sales Order, but orders can have up to 15-20 invoices generated against them sometimes.  Thanks in advance for your help PBI community!

Capture.JPG

1 ACCEPTED SOLUTION
HotChilli
Community Champion
Community Champion

I would caution against doing this (unless you have a very good reason).  Powerbi works very well with columnar data and whatever you are planning will probably be easier with data in the current format.  (Just my opinion )

View solution in original post

1 REPLY 1
HotChilli
Community Champion
Community Champion

I would caution against doing this (unless you have a very good reason).  Powerbi works very well with columnar data and whatever you are planning will probably be easier with data in the current format.  (Just my opinion )

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.