Power BI Remove Duplicate Records And Keep Most Recent

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

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

  • @floydohonetwo-ds7pe
    @floydohonetwo-ds7pe 10 месяцев назад +4

    2024 and you're still saving lives, google and the Microsoft forums only conjured up convoluted solutions.
    Thanks!

  • @AdamGarciaTX
    @AdamGarciaTX Год назад +3

    You are an AMAZING person! You have saved me at least 2 days of stress, headaches, work, and have provided the company with potentially hundreds of thousands of dollars of owed back pay as I am dealing with 190k lines of transaction records.

  • @ClintCarter-vk5ro
    @ClintCarter-vk5ro 7 месяцев назад +1

    3 years later and I still reference this video from time to time. So much that I actually bookmarked it.

  • @kulkajim
    @kulkajim 2 года назад +3

    dude, you just solved it!! Spent 1.25 days on this....by the way I'm also a former Algebra teacher, now working as an analyst....you rock! Jim

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

      That is awesome. I'm glad it could help. Yeah, it took me a while to find this solution for a customer and I knew someone else would benefit from the online community. Nice to have a fellow Algebra teacher in this realm as well.

  • @hughjensen7436
    @hughjensen7436 3 года назад +9

    This was literally exactly what I needed. I'm just breaking into the Power Query scene, and this solved exactly what I was hoping it would. Thanks for the help!!!

  • @mishahappy1990
    @mishahappy1990 3 года назад +1

    Man thank you so much. I stayed up 4 hours past my bedtime to fix this. I thought the error was in the data and never thought Power Query would screw it up

  • @slinktus
    @slinktus 3 года назад

    Thank you, this just fixed 2 days of pain trying to find a solution.

  • @g.r.quartarolo9356
    @g.r.quartarolo9356 Год назад

    I just bumped into your vid and found the answer (not only the solution but also the reasoning behind it) to what was happening to my data. And now i can finally get some sleep haha. Thanks a lot, you're the best!

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

    I was making the exact same mistakes you were making, and you saved me a lot of frustration. Thank you!!! Subscribed!

  • @alexmusisafa98
    @alexmusisafa98 10 месяцев назад

    Super useful trick! You just solved my 1 hour frustration of the day with Power BI. Thanks 🙌🏻🙌🏻

  • @GordonLamb-x7c
    @GordonLamb-x7c Год назад

    This problem was driving me nuts so great to come across this solution. Thank you very much

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

    My Bookmark,
    Equivalent of SQL Partition by Row_Number() order by- 4:40 onwards

  • @resfiando
    @resfiando 3 года назад

    Thanks, i lost many time to solved this issue till find you here

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

    This was brilliant. i just tried it, and it seems to be working. I will know more as i audit my data.

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

    This is exactly what i was looking for .. and it's easy to be comprehensive.

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

    Thanks SO much for explaining this in an an easy way to follow! Yours was the 3rd clip I watched and the easiest to understand hands down - Have now subscribed!

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

    Wow, I cannot tell you how much this speeded up what i was working on.

  • @ThepExcel
    @ThepExcel 3 года назад +1

    Thx a lot, finally i understand the reason of this weird behavior

  • @xuhao7208721
    @xuhao7208721 3 года назад +1

    brilliant sir! The simplest while smartest solution so far!

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

    the buffer detail was to step I need, thank you very much!

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

    I LOVE YOU!!! It was killing me why it wouldn't remove my duplicates and keep the latst!!

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

    Thank you so much. You have been a saviour. None other video explained the sorting action in detail. This helped to solve big bug.

  • @geoffmoten3509
    @geoffmoten3509 3 года назад +1

    I have (had!) a similar problem. This showed me the approach - worked a treat!!

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

    Just back here to say that this is the most perfect answer to this question

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

    This is great information. Is there a way to get the most recent as you show but also create a new column with data from a cell of the duplicate being removed?

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

    That is great! But, what if you have two different tables with two different latest date of different activities that you want to get the latest activity status date. How do you solve for it?

  • @zerbaraa
    @zerbaraa 3 года назад

    I've been struggling with this for the last day. Thank you verrrry much for the fix!

  • @panagiotisgoulas8539
    @panagiotisgoulas8539 10 месяцев назад +1

    That's nice and all but I have a similar problem which I can solve in pandas but not in power BI. Suppose I have 2 tables A and B, B being the newest.
    I append these tables and in case there are duplicate e-mails/primary keys I want to keep only the records coming from table B which are supposedly the latest.
    There is no date column to take advantage of sorting gimmicks. How would you solve that? For example in pandas there is a first and last attribute that can solve this.

  • @jamessavage9160
    @jamessavage9160 3 года назад +2

    excellent really appreciate this video and your clear presentation

  • @ashm2989
    @ashm2989 3 года назад +3

    I've been struggling with this for the last 8 hours. Thank you for the fix!

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

    Thanks for the information, it did work for me.
    PS: Just insane to have to add a command to have Power Excel actually functioning like Excel (which takes the first sorted line and discard the others). If i would'nt have thoroughly checked the data's results (final output being 17k beneficiaries out of 660k based on criteria) using the remove duplicates function in Power Excel versus Excel I would'nt have known. Bottom line: no reason to change the order just to speed up internal refreshing, it could have been a box that the user would be checking if they didn't care about the order.

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

    Table.Sort is wrapped in Table.Buffer 5:39

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

    thanks for the video, learned something new today.

  • @qasimjan5258
    @qasimjan5258 3 года назад +4

    Excellent. We want more Power query Magic Sir.

  • @taibabs1222
    @taibabs1222 3 года назад +1

    Thank you very much for you video. Keep up the good work

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

    This is wonderful method!
    However,why is it that latest updates with null values cant replace the preceding records..null cant update null or update a records?

  • @bendreessen2809
    @bendreessen2809 Месяц назад

    Wonderful! just what I needed, thank you!

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

    Same exact frustration i experienced
    Great work around

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

    This was amazing,,,, And crazy simple as well. Thank you.

  • @cristoumanzor3896
    @cristoumanzor3896 3 года назад +1

    You solved my problem. Thanks Matt!

  • @sarajvo2010
    @sarajvo2010 3 года назад +2

    Great trick. I should try the same in Excel PQ :)

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

    Excellent, this is exactly what I was looking for. Thank you so much.

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

    What if the status update is modified on the same date. Let's say their recent update is on Jan 01, and again they modified that update on Jan 01 itself but at a later time in day. Then which one will it choose if we don't know the time at which they got changed?

  • @amarildodido1
    @amarildodido1 3 года назад

    thank you very much, you have no idea how much you helped me with this video!!

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

    Awesome video. Was struggling with this for a while and I didn't know you could force it to do that!

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

    Just the thing i needed - thank you

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

    Thank you a lot for this solution! It helped me a lot!

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

    Thank you so much, this is exactly what I needed!!!

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

    when I apply Table.Buffer in a query with a large volume of data, powerquery just keeps processing, taking a while to return the table.buffer command. Why does it happen? Is anyone going through this too?

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

    how do I undo the removal up dulicate rows/columns?

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

    Thaaanks!!! this is exactly what I was trying to doo!!

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

    Awesome video and explanation, thank you very much!

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

    Thanks sooo much!!!!! It helped me a lot!

  • @saikirankusumanchi4522
    @saikirankusumanchi4522 3 года назад +2

    Brilliant, this is really helpful

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

    That did the trick for me, thank you!!!

  • @jaafaralsharif8333
    @jaafaralsharif8333 3 года назад

    Many thanks
    I was looking for this solution

  • @pabeader1941
    @pabeader1941 5 месяцев назад

    Group by with aggregate Max on Date?

  • @harrydre
    @harrydre Месяц назад

    I attempted this but my computer freezes. My table has about 20m records. I am trying to remove duplicates and be left with only records whose invoice date is close to the last employee roster entry (date field) any ideas how to resolve this?

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

    thank you! your saved my mental healthy

  • @A2662143
    @A2662143 7 месяцев назад

    Thanks, your video helped me alot.

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

    Hey man, you saved me!
    Thanks!

  • @mnthanh
    @mnthanh 3 года назад +1

    Thanks so much for the tutorial

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

    Thank you SO MUCH. Saved me a lot of time!

  • @Freeak3d
    @Freeak3d 3 года назад +1

    you are a genius sir

  • @luanoliveira6643
    @luanoliveira6643 3 года назад

    It was really helpful, thanks so much

  • @ahmedsleem1222
    @ahmedsleem1222 7 месяцев назад

    Worked for me thanks a lot ❤

  • @idilcancan
    @idilcancan 7 месяцев назад

    I used "table.buffer" in the same way but when i wanted to apply changes and close the transform data section, it takes like forever. I tried to do it for days but i gave up. There must be a problem :( Does anyone have an idea about that?

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

    Hi I need similar solution in dataflow, because I can't able to use table.buffer in dataflow. Any alternative solution for this issue

  • @allabout1135
    @allabout1135 3 года назад

    Ohh soo good solution, but what if I do not use data directly after Table.Buffer apply, lets assume I keep continue adding some more steps. Do I need on each step use Table.Buffer ?

    • @TheAlgebraTeacherPOWERStoBI
      @TheAlgebraTeacherPOWERStoBI  3 года назад

      You do not. You've already limited what rows to return and thus your subsequent transforms will be applied to those rows.

    • @allabout1135
      @allabout1135 3 года назад

      @@TheAlgebraTeacherPOWERStoBI Currently I have issue where I prepare where sorting is involved and then merged with another table. After the merge all goes wrong and data is totally mixed up.

  • @Rrabbit_swim
    @Rrabbit_swim 3 года назад +1

    I have been looking for this

  • @Youmna-kx8do
    @Youmna-kx8do 3 года назад

    easy and efficient
    Amazing 👍👍👍👍👍👍👍👍👍👍👍👍👍👍

  • @aditisplayworld5853
    @aditisplayworld5853 3 года назад +1

    Thank you..This is brilliant

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

    Thank you very much for this.

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

    Great tip!

  • @gijsschuurman3083
    @gijsschuurman3083 7 месяцев назад

    Thanks! I thought PQ was lying to me :)

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

    this is so great! thanks

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

    Good to know this! thanks.

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

    Hi Sir, I need the same result using SQL query. Could you help me?

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

    Always great❤❤

  • @joseulloa9399
    @joseulloa9399 3 года назад +1

    Thank you!

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

    Can I get a sample file

  • @totvabe1
    @totvabe1 3 года назад +1

    Brilliant !!!

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

    great tip👍

  • @dennischen7119
    @dennischen7119 9 месяцев назад

    saving lives here!!!

  • @MrTrolliver
    @MrTrolliver 3 года назад +1

    You're a goddamn hero!

  • @shrirajdeshpande8125
    @shrirajdeshpande8125 3 года назад +1

    Awesome !!!

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

    Thank you soo much

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

    tank you so much !

  • @mohd.aqibansari8413
    @mohd.aqibansari8413 Год назад

    thankyou very much

  • @Milhouse77BS
    @Milhouse77BS 3 года назад +1

    Yep, sorting/distinct has been fooling people for years. Would be nice if it was built in behavior.

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

    LOL very complex

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

    Thank you!