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
JWick1969
Helper IV
Helper IV

Transpose selected columns (rows) into multiple columns

Hello,

Searching for an answer for my requirements using power query but seem's i can't find the right code.

I'm trying to transpose a table with 15 columns (only selected column to be transpose stepid, failcode, faildesc, stepid2) and  create multiple columns. I'd like to group them by ID, route, itemid,  status.

I've tried table.transpose  and Pivot table but I'm not sucessful and also I dont think i have the correct values of fields added on the code.

 

This is my current table. using only a couple of columns as sample.

Untitled1.jpg

 

The second image is the expected result/output  after transpose.

Untitled2.jpg 

Any help is very much appreciated.

 

Thank in Advance!

 

JW

 

 

 

 

1 REPLY 1
lbendlin
Super User
Super User

Please don't do that. This is the antithesis to what Power BI is about.  

 

Instead, create a matrix visual and arrange your fields from your original table (which is fine as is) as needed.

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.