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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

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

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors