Power Query MERGE Challenge Solution - DUPLICATES Alert

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

Комментарии • 45

  • @andrewsinha2785
    @andrewsinha2785 2 года назад +2

    Hi Wyn, This is very useful to me as I work with many ad-hoc spreadsheets that cannot always be checked for duplicates before loading into PQ. Thanks again. Andrew

    • @AccessAnalytic
      @AccessAnalytic  2 года назад

      You're welcome Andrew. Thanks for taking the time to leave a kind comment

  • @Soulenergy31
    @Soulenergy31 Год назад +1

    Thank u SenSei. I spent a whole morning trying to figure out how to fix it!!

  • @ryan_haigh
    @ryan_haigh Год назад +1

    This is a nice solution, will be interesting to try with larger datasets and multiple joins and whether it can use native query. One small thing, filtering 0 will falsely report rows with no matching value in the joined table (possible with left outer join) as duplicates, better to use > 1.

    • @AccessAnalytic
      @AccessAnalytic  Год назад

      Yep, good call Ryan. I actually used > 1 in my final solution file that is linked in the comments. The 1 option might be a good solution for flagging duplicate OR missing dimension codes...🤔

  • @Mister_Bates
    @Mister_Bates 2 года назад +1

    Loved your use of Table.FromList (with the optional columns parameter) - I've been using #table() up until now, but the downside of that is having to provide values for each column ... 🙂

  • @shamafirdos8077
    @shamafirdos8077 2 года назад +1

    i am a beginner with power query and this is very helpful. thankyou for sharing your solution

    • @AccessAnalytic
      @AccessAnalytic  2 года назад

      Glad it helps. Thanks for taking the time to leave a kind comment.

  • @mandypaulissen
    @mandypaulissen 11 месяцев назад +1

    This one is absolutely a brilliant piece and hatdcore nerdy, but very useful!!!!🔥🔥🔥

  • @Bhavik_Khatri
    @Bhavik_Khatri 2 года назад

    Very elegant solution. Would you buffers for duplicate check to speed up the query?

    • @AccessAnalytic
      @AccessAnalytic  2 года назад +1

      I don't think so, although .buffer is a dark art. I don't think it fits here

    • @Bhavik_Khatri
      @Bhavik_Khatri 2 года назад

      @@AccessAnalyticI used Buffer before and I remember it's a list in memory for faster processing.

    • @AccessAnalytic
      @AccessAnalytic  2 года назад

      It will prevent multiple calls to the source. If I don’t think that applies here

    • @Bhavik_Khatri
      @Bhavik_Khatri 2 года назад

      @@AccessAnalytic Thank you for clarifying my query.

  • @shreedharan.moorthy
    @shreedharan.moorthy Год назад

    This is great. However not able to overcome duplicate, since my database is huge, and there is no unique identifier available.
    I merged using three different columns, which is po number, Sty code and colour codes.
    Each one having multiple rows based on colour code and quantity

  • @shwetkumar1719
    @shwetkumar1719 3 месяца назад

    Hello Sir,
    I have a historical table and Another table is Delta table which have rows that comes daily.
    now it wants to upsert that delta table match each row with historical table and when it matches then update it with delta rows and if match not found then insert the rows.

    • @AccessAnalytic
      @AccessAnalytic  3 месяца назад

      Sounds more like something suitable to Fabric and a warehouse

  • @alexbarbucristi
    @alexbarbucristi Год назад +1

    Thank you, always something new to learn from you!

    • @AccessAnalytic
      @AccessAnalytic  Год назад

      Cheers. I appreciate you taking the time to let me know you found it useful

  • @kebincui
    @kebincui 2 года назад +1

    Fabulous. Thanks WYN👍

  • @mirrrvelll5164
    @mirrrvelll5164 2 года назад

    Great video! But what if you wanna have that "alert" written on certain rows but still showing the rest of results?

    • @AccessAnalytic
      @AccessAnalytic  2 года назад

      Thanks. When adding the custom row count column you could wrap it in an IF > 1 then Alert else null

    • @mirrrvelll5164
      @mirrrvelll5164 2 года назад

      @@AccessAnalytic You mean at the very end?

    • @AccessAnalytic
      @AccessAnalytic  2 года назад

      Around the 6:07 mark, wrap the row count formula in an if statement

  • @brianxyz
    @brianxyz 2 года назад

    What was the purpose of calculating the Max? I don't think you made use of this later.

    • @AccessAnalytic
      @AccessAnalytic  2 года назад

      Hi , at 13:40 in the final step I use MaxCount in the IF

  • @vijaykrishnan4151
    @vijaykrishnan4151 Год назад

    I see the merge showing me the first instance always just like vlookup in excel So i am not sure if this issue is fixed or am i looking in the wrong place? For eg if i have A as Apple and another entry with A as avacado, merge is always showing A as apple and its not doubling up after merge.

    • @AccessAnalytic
      @AccessAnalytic  Год назад

      Maybe one A has a space before /after it or something different about it. Uppercase lower case can impact too

  • @rameshnaidu7034
    @rameshnaidu7034 Год назад

    How to marge tow tables, base on customers latest visit date.

    • @AccessAnalytic
      @AccessAnalytic  Год назад

      Sounds like something that requires some further explanation and example / screenshots.
      I recommend posting to techcommunity.microsoft.com/t5/microsoft-excel/ct-p/Excel_Cat?WT.mc_id=M365-MVP-5002589
      or
      community.powerbi.com/t5/Power-Query/bd-p/power-bi-services

  • @ohdjrp4
    @ohdjrp4 Год назад +1

    Spins in my head, really😂😂😂 but I think it's great!

  • @TheLaopi
    @TheLaopi Год назад +1

    Wouahhhhh

  • @normandtousignant1754
    @normandtousignant1754 2 года назад +1

    Wow clever!

  • @GeertDelmulle
    @GeertDelmulle 2 года назад +2

    Nice solution, albeit a bit predictable.
    And yet, it’s the unexpected that’s the most fun: those extra arguments in Table.FromList.
    BTW, here’s how I make intellisense work: before I start typing the name of a function, I type an opening parenthesis (“(“), then arrow left and start typing the function. Then it works perfectly. Give it a try. :-)
    Cheers.

    • @AccessAnalytic
      @AccessAnalytic  2 года назад +1

      Nice Geert

    • @AccessAnalytic
      @AccessAnalytic  2 года назад +1

      It's amazing how many different approaches people took in their submissions. Glad mine was logical.

    • @GeertDelmulle
      @GeertDelmulle 2 года назад +1

      @@AccessAnalytic What I meant to say was: this challenge was not the most difficult one to date.
      BTW: this challenge did show (again) the versatility of Power Query: Power Pivot could not handle this, needing a unique primary key in the dimension table. Also, merging tables based on multiple columns is something PP can’t do.
      In that sense PQ is the most robust. Yet another reason why we like PQ so much. :-)

    • @AccessAnalytic
      @AccessAnalytic  2 года назад +1

      Indeed!