Forum Discussion

Ocasio27's avatar
Ocasio27
Iron Contributor
Aug 07, 2020
Solved

How to consolidate repeated records on a table

I have 2 tables, I would like to convert, left to right in this example. Only way I have done it is by using a lot of steps on Power Query which slows down my computer and often crashed (original fil...
  • SergeiBaklan's avatar
    SergeiBaklan
    Aug 10, 2020

    Ocasio27 

    The easiest way is with Power Query - query the source, group by ID using function as here for aggregation

    let
        Source = Excel.CurrentWorkbook(){[Name="tblSource"]}[Content],
        #"Grouped Rows" = Table.Group(Source,
            {"ID"},
            {
                {"Locations", each Text.Combine(_[Location]," + ")}
            }
        )
    in
        #"Grouped Rows"

    Result is like

Resources