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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

transpose column into line

Hey guys.

Could you help me with the following question. I get a base where I have my column records.

I need to transpose the columns and place the record under those columns.

As shown in the example below.

I need this direct solution in Power Query.

Download Pbix.
https://drive.google.com/file/d/1Snwi6gq7vRYTNsn6Bt-9sSoX__TeHoMG/view?usp=sharing 


Image 2.JPGimage 1.JPG

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

This is called 'pivoting' but you need some extra information to make it work. Add a column that groups each set of three rows. One way to do this is to add an index column from 0 and integer-divide by three so that you have this:

AlexisOlson_0-1637964576743.png

then you can pivot COLLUM

AlexisOlson_1-1637964666433.png

Result:

AlexisOlson_2-1637964696063.png

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Spectacular, saved my weekend. Thank you very much

AlexisOlson
Super User
Super User

This is called 'pivoting' but you need some extra information to make it work. Add a column that groups each set of three rows. One way to do this is to add an index column from 0 and integer-divide by three so that you have this:

AlexisOlson_0-1637964576743.png

then you can pivot COLLUM

AlexisOlson_1-1637964666433.png

Result:

AlexisOlson_2-1637964696063.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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