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
Nick555
Helper I
Helper I

Moving Rows Columns

I have a SharePoint Online list that I am working with. One of the fields is an Assigned Person field. I have been able to get it into a table of just IDs and the assigned people, following the structure of Table 1 below. I am trying to get it to be like Table 2 below.

I’ve found a couple of postings that seem to deal with similar situations, but they just don’t seem to work. Some of the steps they list will not have the same options I am given when I follow their steps.

Any help would be greatly appreciated. Thx

Nick555_0-1704484878382.png

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Nick555 
Create a blank Query, go to the Advanced Editor, clear the existing code, and paste the codes give below and follow the steps.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUQpILSrOz1NIVIrViVYyQggkgQWMEQLJYAEThEAKWMAUj0AqWMAM3RZzdC0W6NZaoGuxRNdiaIBiTSwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, Person = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}, {"Person", type text}}),
    #"Grouped Rows" = 
    
    Table.Group(
        #"Changed Type", 
        {"ID"}, 
        {
            {"all", each  Text.Combine(List.Transform([Person], Text.From), "|")}
        }
    ),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Grouped Rows", "all", Splitter.SplitTextByDelimiter("|", QuoteStyle.Csv), {"all.1", "all.2"})
in
    #"Split Column by Delimiter"

Result

Fowmy_0-1704487615806.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@Nick555 
Create a blank Query, go to the Advanced Editor, clear the existing code, and paste the codes give below and follow the steps.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUQpILSrOz1NIVIrViVYyQggkgQWMEQLJYAEThEAKWMAUj0AqWMAM3RZzdC0W6NZaoGuxRNdiaIBiTSwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, Person = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}, {"Person", type text}}),
    #"Grouped Rows" = 
    
    Table.Group(
        #"Changed Type", 
        {"ID"}, 
        {
            {"all", each  Text.Combine(List.Transform([Person], Text.From), "|")}
        }
    ),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Grouped Rows", "all", Splitter.SplitTextByDelimiter("|", QuoteStyle.Csv), {"all.1", "all.2"})
in
    #"Split Column by Delimiter"

Result

Fowmy_0-1704487615806.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.