Power Query MERGE Challenge Solution - DUPLICATES Alert

Поділитися
Вставка

КОМЕНТАРІ • 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!!

  • @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.

  • @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 ... 🙂

  • @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...🤔

  • @mandypaulissen
    @mandypaulissen 10 місяців тому +1

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

  • @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👍

  • @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 2 місяці тому

    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  2 місяці тому

      Sounds more like something suitable to Fabric and a warehouse

  • @Bhavik_Khatri
    @Bhavik_Khatri Рік тому

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

    • @AccessAnalytic
      @AccessAnalytic  Рік тому +1

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

    • @Bhavik_Khatri
      @Bhavik_Khatri Рік тому

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

    • @AccessAnalytic
      @AccessAnalytic  Рік тому

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

    • @Bhavik_Khatri
      @Bhavik_Khatri Рік тому

      @@AccessAnalytic Thank you for clarifying my query.

  • @ohdjrp4
    @ohdjrp4 Рік тому +1

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

  • @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

  • @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

  • @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

  • @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

  • @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!

  • @TheLaopi
    @TheLaopi Рік тому +1

    Wouahhhhh