Group Uniques - Power Query Challenge

Поділитися
Вставка
  • Опубліковано 5 сер 2024
  • ⏬ This Power Query Challenge is about combining multiple records into single rows ⏬
    00:00 Intro
    00:19 The Challenge
    01:44 The Long Solution
    05:44 The Better Solution
    The Solution File and everyone's submissions can be found here:
    aasolutions.sharepoint.com/:f...
    The team and I at Access Analytic develop Power BI and Excel solutions for clients in Australia and deliver training around the World. accessanalytic.com.au/
    Did you know I've written a book "Power BI for the Excel Analyst"?
    pbi.guide/book/
    Connect with me
    wyn.bio.link/
  • Навчання та стиль

КОМЕНТАРІ • 25

  • @hk_200k
    @hk_200k 9 місяців тому +2

    As always, love this magic show

  • @angelaisland4036
    @angelaisland4036 7 місяців тому +1

    Very helpful! Thank you!

    • @AccessAnalytic
      @AccessAnalytic  7 місяців тому

      You’re welcome. I appreciate you taking the time to let me know you found it useful

  • @brianjulius6401
    @brianjulius6401 9 місяців тому +1

    Wyn - Thanks! Fun challenge and a great wrap up.

  • @Acheiropoietos
    @Acheiropoietos 9 місяців тому +1

    Great solutions. I am very interested in seeing more 👍❤️

  • @chrism9037
    @chrism9037 9 місяців тому +1

    Very cool, thanks Wynn

  • @thebhaskarjoshi
    @thebhaskarjoshi 9 місяців тому +1

    Would love ❤ to see other solutions as well...

    • @AccessAnalytic
      @AccessAnalytic  9 місяців тому

      All available via the link in the description 👍🏼

  • @Bhavik_Khatri
    @Bhavik_Khatri 9 місяців тому +1

    Bloody Awesome

  • @davidmaldonadocastillejos3179
    @davidmaldonadocastillejos3179 9 місяців тому +1

    Those challenges are a nice initiative

  • @UKDevice
    @UKDevice 9 місяців тому +1

    I think i would have gone with the "Text.Combine(List.Distinct([Data][System 1 contact ID]),",")" custom columns after grouping by ID and do this for each field to return. No need to expand lists etc but the method shown involves less steps. Nice.

  • @mienzillaz
    @mienzillaz 9 місяців тому

    hmm.. my solution wasn't featured. pity

    • @AccessAnalytic
      @AccessAnalytic  9 місяців тому

      Yeah just too many to cover all sorry.
      I see you went down the same lines as the video as did several others 👍🏼

    • @mienzillaz
      @mienzillaz 9 місяців тому +1

      @@AccessAnalytic yes, unpivot first with all rows, transform them to get a list, clean up from duplicates, and put it back together with a pivot

  • @BillSzysz1
    @BillSzysz1 9 місяців тому +1

    And I missed your challenge again ☹ So maybe I'll give you something short, just two steps
    let
    Source = Excel.CurrentWorkbook(){[Name="tblData"]}[Content],
    Result = Table.Combine(Table.Group(Source, {"Client ID#"}, {{"tbl", (x) => Table.FromRows({List.Transform(Table.ToColumns(x), each Text.Combine(List.Distinct(_), ", "))}, Table.ColumnNames(x)), type table}})[tbl])
    in
    Result

    • @AccessAnalytic
      @AccessAnalytic  9 місяців тому

      Cheers Bill, I’m always impressed by the nested formula approach but find it harder to understand and explain to others than separate steps.

  • @GrainneDuggan_Excel
    @GrainneDuggan_Excel 9 місяців тому +1

    I did it in two steps but it was manual. It does not deal with the Deal ID#s problem and it is not dynamic if the column names change. Thanks for saying use PQ to rename column Deal ID - obvious after I saw your solution.....
    let
    Source = Excel.CurrentWorkbook(){[Name="tblData"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Client ID#"},
    {{"Count S1 id", each Text.Combine(List.Distinct( [System 1 contact ID]),", "), type text},
    {"Count S2 id", each Text.Combine(List.Distinct( [System 2 contact ID]),", "), type text},
    {"Count S3 id", each Text.Combine( List.Distinct([System 3 contact ID]),", "), type text},
    {"Count Name", each Text.Combine(List.Distinct([Name]),", "), type text},
    {"Count Email", each Text.Combine(List.Distinct([Email]),", "), type text},
    {"Count Phone", each Text.Combine(List.Distinct([Phone number]),", "), type text},
    {"Count Deal", each Text.Combine(List.Distinct([Deal IDs]),", "), type text}})
    in
    #"Grouped Rows"