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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cinsbox
Frequent Visitor

How to split one column into multiple columns based upon values?

Hi I would like to see if anyone can help with splitting one column into multiple columns using Power Query.  

 

I am pulling a list of customers using from SQL database, the list looks like the following: 

 

Customer IDNameType
123Name1Addressee
123Name1Salutation

234

Name2Addressee
234Name2Salutation

 

Is there any way to restructure the data using Power Query so the data looks like this? 

Customer IDNameType1Type2
123Name1AddresseeSalutation
234Name2AddresseeSalutation

 

I would like how to rid of two rows per customers and also split the text value under Type into separate columns.  Any help is appreciated!  Thank you. 

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

1 REPLY 1
wdx223_Daniel
Super User
Super User

wdx223_Daniel_0-1637213959147.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.