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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors