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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.

August 2025 community update carousel

Fabric Community Update - August 2025

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