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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

tranform coloumn to row

hey team,
i have an excel file with a  column that contains names,role, and companies of the users, 

rahulkrishna14_1-1661829433191.png

 

I want to transform A3 to b2, a4 to c2,a5 to a3, a6 to b3, and a7to c3... ie every name should be in the name column, role in the role column and company in company column

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You could transpose the Name column and then use the first row as the headers.

1.Transpose

vstephenmsft_0-1662025532935.png

 

2.Use first row as headers

vstephenmsft_1-1662025545488.png

vstephenmsft_2-1662025566335.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
wdx223_Daniel
Super User
Super User

=#table({"Name","Role","Company"},List.Split(PreviousStepName[Name],3))

Anonymous
Not applicable

Thanks, this is throwing error in power query, Can you please eloborate it

Anonymous
Not applicable

Hi @Anonymous ,

 

You could transpose the Name column and then use the first row as the headers.

1.Transpose

vstephenmsft_0-1662025532935.png

 

2.Use first row as headers

vstephenmsft_1-1662025545488.png

vstephenmsft_2-1662025566335.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

Top Solution Authors
Top Kudoed Authors