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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jakeryan56
Advocate II
Advocate II

Merge and transpose columns to seperate rows

Sorry I can't explain this very well but I have the following table with a case_id and up to four values. 

Screen Shot 2022-04-07 at 17.44.29.png

I want to merge all the "value" columns and create a new row for each so that the data is structured like this:

Screen Shot 2022-04-07 at 17.44.00.png

 

Any ideas? I was thinking this would be something I could do in M query but can't figure it out. 

 

1 ACCEPTED SOLUTION
BITomS
Solution Supplier
Solution Supplier

If you right click on the case_id header, you should see the option for 'unpivot other columns'.

 

Selecting this option should give you the structure you wanted.

View solution in original post

2 REPLIES 2
abatahir
Helper I
Helper I

there is an option unpivot column you just click unpivot other columns.

just an example 

abatahir_0-1649320224786.jpeg

 

BITomS
Solution Supplier
Solution Supplier

If you right click on the case_id header, you should see the option for 'unpivot other columns'.

 

Selecting this option should give you the structure you wanted.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.