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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
FOMO
New Member

Transform Column into Row

Hey just (hopefully) a simple question:

 

I got input by dataverse like this format:

 

Column1 Name1 Name2

08.           Mario    Luca

 

Now i just want to convert the Name2 column to the Name1 by copie the whole entry.

It should look like this:

Column1 Name1 

08.           Mario   

08.           Luca

 

 

 

Thanks for any advice 

 

 

 

2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

pls try this

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMrDQU9JR8k0syswH0ocW+JQmJyrFxgIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Name1 = _t, Name2 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Name1", type text}, {"Name2", type text}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Column1"}, "Attribute", "Value"),
    #"Removed Columns" = Table.RemoveColumns(#"Unpivoted Other Columns",{"Attribute"})
in
    #"Removed Columns"

Screenshot_2.png

View solution in original post

Anonymous
Not applicable

Hi @FOMO 

Just  as @Ahmedx  says, use Unpivot Other Columns is a viable approach. Here is my method.

I create a table as you mentioned.

vyilongmsft_0-1710124770756.png

vyilongmsft_4-1710125210040.png

Then I use Unpivoted Columns, it gives me Attribute and Value.

vyilongmsft_1-1710124928732.png

Finally I use Remove Columns to remove Attribute. I also change Value to Name1.

vyilongmsft_3-1710125179277.png

 

 

 

Best Regards

Yilong Zhou

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

2 REPLIES 2
Anonymous
Not applicable

Hi @FOMO 

Just  as @Ahmedx  says, use Unpivot Other Columns is a viable approach. Here is my method.

I create a table as you mentioned.

vyilongmsft_0-1710124770756.png

vyilongmsft_4-1710125210040.png

Then I use Unpivoted Columns, it gives me Attribute and Value.

vyilongmsft_1-1710124928732.png

Finally I use Remove Columns to remove Attribute. I also change Value to Name1.

vyilongmsft_3-1710125179277.png

 

 

 

Best Regards

Yilong Zhou

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

Ahmedx
Super User
Super User

pls try this

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMrDQU9JR8k0syswH0ocW+JQmJyrFxgIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Name1 = _t, Name2 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Name1", type text}, {"Name2", type text}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Column1"}, "Attribute", "Value"),
    #"Removed Columns" = Table.RemoveColumns(#"Unpivoted Other Columns",{"Attribute"})
in
    #"Removed Columns"

Screenshot_2.png

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.