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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors