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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.