Forum Discussion

mouri_kimochi's avatar
mouri_kimochi
New Member
3 years ago
Solved

Convert rows to multiple column

Hi,

 

I need help to convert this table:

 

NameFeb 2023Mar 2023Apr 2023
Alexxxxxxxxxx
Benxxxxxxxxx
Chrisxxxxxxxxx

 

into this:

 

NameMonthSales
Alex

Feb 2023

xxx
BenFeb 2023xxx
ChrisFeb 2023xxx
AlexMar 2023xxx
BenMar 2023xxx
ChrisMar 2023xxx
AlexApr 2023xxx
BenApr 2023xxx
ChrisApr 2023xxx

 

Before this, i use to copy paste manually and it took way too much time when we have way too much rows.

Thanks.

  • for that you have to unpivot the table,

    select the "Feb 2023","Mar 2023","Apr 2023" columns and then select the option "unpivot only selected columns".

    OR

    select the "Name" column and then select the "unpivot other columns".

4 Replies

  • on transform data, try to use "Unpivot other column", then select only Name

  • mouri_kimochi 

     

     

     

     

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

  • Hi,

    To convert this table you need to unpivot(turns column into rows) it from Power Query Editor. Select the columns and right click >Unpivot. 

    Thank you.

  • for that you have to unpivot the table,

    select the "Feb 2023","Mar 2023","Apr 2023" columns and then select the option "unpivot only selected columns".

    OR

    select the "Name" column and then select the "unpivot other columns".