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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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
Continued Contributor
Continued Contributor

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
Continued Contributor
Continued Contributor

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

Power BI Monthly Update - September 2025

Check out the September 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.