Power BI: Remove Duplicate Records And Keep Most Recent ⚡

  Рет қаралды 47,480

Pragmatic Works

Pragmatic Works

Күн бұрын

In this video, I explain how to use the Table.Buffer function in the Power Query Editor to remove duplicate records with differing dates and keep the most recent entry.
To see all of Matt's videos check out his KZbin series on:
/ @thealgebrateacherpowe...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
On-Demand Learning Courses FREE Trial: www.pragmaticw...
Pragmatic Works Blog: blog.pragmaticw...
Let's connect:
Twitter: / pragmaticworks​
Facebook: / ​
Instagram: / pragmatic.w​. .
LinkedIn: / prag​. .
KZbin: / pragmaticworks​
Pragmatic Works
1845 Towncenter Blvd Suite 505 Fleming Island, FL 32003
Phone: (904) 413-1911
Email: training@pragmaticworks.com

Пікірлер: 175
@krystieharris4026
@krystieharris4026 6 ай бұрын
It took me 3 hours to find you, but i'm so glad I did! Thank you!
@9ajack
@9ajack Жыл бұрын
This is a live saver!! I had a similar issue and so simple yet so helpful!
@Dude276175
@Dude276175 2 жыл бұрын
I wasted sooo much time trying to figure this out. I found the reason that Remove Duplicates was not working, but could not find a fix (that I was able to perform with my level of knowledge). Then I found this video and it was PERFECT.
@Tdrewlo
@Tdrewlo Жыл бұрын
Incredibly helpful yet so simple! Thanks so much!
@PragmaticWorks
@PragmaticWorks Жыл бұрын
Glad it was helpful!
@DanBrill
@DanBrill Жыл бұрын
Thanks! Very well explained. It's an easy fix, but I'd never have figured this out on my own.
@hannahmahoney6267
@hannahmahoney6267 2 жыл бұрын
THANK YOU SO MUCH! I was having a really hard time understanding why PBI would not remove duplicates after I sorted and this video was so easy to apply and solved my issue !
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad it helped!
@ChiefBroady
@ChiefBroady 6 ай бұрын
Thank you! Such an easy solution for such a weird functionality.
@nicoleburnat2550
@nicoleburnat2550 2 жыл бұрын
I spent nearly 4 hours trying to figure this out..thank you so much, so easy!
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad it helped!
@gaparkinson09
@gaparkinson09 2 жыл бұрын
This was so simple and perfect - thank you!!!!
@PragmaticWorks
@PragmaticWorks Жыл бұрын
Glad it was helpful!
@favoureforuoku4622
@favoureforuoku4622 3 ай бұрын
Thank you so much for this video @matthew Peterson. I have a related problem, but in this case, I don't want to delete the old record but want to return only the most recent as a count.
@melissawaller239
@melissawaller239 11 ай бұрын
Thanks so much for this!! I needed to be able to remove duplicates in both ascending date order and descending date order and I kept getting the same info. So thankful to find this. Very easy to follow!
@PragmaticWorks
@PragmaticWorks 11 ай бұрын
Melissa, we are so glad you found the video helpful! Thank you for watching and commenting.
@wessauder7708
@wessauder7708 4 ай бұрын
Wow! I didn't know about the Table.Buffer function. I wonder if there are other types of issues where this pops up. Thank you for posting - saved me hours.
@narafinbluemoon906
@narafinbluemoon906 6 ай бұрын
Thank you very much for your effort. Simple and it is working.
@ChristopherMoore1913
@ChristopherMoore1913 11 ай бұрын
Great video. I've been looking for something like this. I aggregate data from dozens of excel models each month, and one of the tables is the 1 side of a 1 to many relationships. I've been filtering the table by only keeping the latest records based on submission month, but that filtered out closed projects. This method works much better.
@dickmcmullen2341
@dickmcmullen2341 3 жыл бұрын
Thanks Matthew - Have tried this before unsuccessfully with a different syntax, so thanks for the correct syntax. It now works beautifully!
@TheAlgebraTeacherPOWERStoBI
@TheAlgebraTeacherPOWERStoBI 3 жыл бұрын
Glad to have helped!
@ecashmarketing
@ecashmarketing Жыл бұрын
good stuff!!!! help me solve problem.... i was joining tables here and there....your solution was so simple.
@nathangoffnett5693
@nathangoffnett5693 6 ай бұрын
Awesome explanation and solution, this is exactly what I needed! :D
@JoshCunningham-e2o
@JoshCunningham-e2o 8 ай бұрын
Thank you for this video! Was very frustrated with my sort not working properly until I learned about this fix.
@tystallard
@tystallard 6 ай бұрын
Thank you, I had a hard time figuring this one out. I appreciate you taking the time and posting this.
@mattaldridge
@mattaldridge 8 ай бұрын
THANK YOU! you just saved me an hour of work trying to figure this out
@B0ge
@B0ge 2 жыл бұрын
So easy to follow-up how you navigate through the video. Thanks for excellent video and advice!
@lukeandchitraswygard8567
@lukeandchitraswygard8567 3 жыл бұрын
Thank you! I desperately needed this solution! Grateful to have found this video!
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
You are very welcome!
@mdrinkwater
@mdrinkwater 9 ай бұрын
Thankyou for making this. I would NEVER have figured this out by myself!
@hakim4416
@hakim4416 2 ай бұрын
Un grand merci pour ce partage. C'est tellement bien expliqué !
@LuisJuarez-mi8du
@LuisJuarez-mi8du 6 ай бұрын
Great explanation, thanks for sharing the knowledge!
@daniellaria
@daniellaria 2 ай бұрын
This was awesome! Thank you for a realy simple and effective video!
@davidweaver8506
@davidweaver8506 Жыл бұрын
Thanks Matt! This is super helpful. You mentioned doing a little research and finding this. Where did you find it?
@HowardND9
@HowardND9 3 жыл бұрын
Holy **** this is fantastic…EXACTLY what I needed and way more efficient than my ideas! I will use this like a bar of soap. Thank you!
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
You are welcome!
@iainmorrison6658
@iainmorrison6658 Жыл бұрын
That is a brilliant tip/trick. Thanks for putting in the sleuthing to find that solution.
@souzarodrigo04
@souzarodrigo04 3 жыл бұрын
Good trick, will definitely use it, thank you. Just wondering why the video title mentions Power Apps...
@yaygara
@yaygara 3 жыл бұрын
Super easy trick, saved my day! Thank you.
@josemadrid17
@josemadrid17 2 жыл бұрын
Great explanation Sir! I was having the same exact issue, luckily I was able to solve it right away.
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad it helped!
@ivanbork4175
@ivanbork4175 2 жыл бұрын
In short, thanks Has been annoying me for the longest time You got a new follower
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Thanks for subscribing!
@nathanwilliams7129
@nathanwilliams7129 9 ай бұрын
Amazing. Just what I needed. Thankyou!
@helmutgertz8721
@helmutgertz8721 3 жыл бұрын
Really helpful!!!! Nailed and fixed what caused me some headache ...
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
Glad it helped!
@victorpiva701
@victorpiva701 3 жыл бұрын
Thank you so much!!! I was searching for this solution for hours!!!! Love from Brazil!
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
Glad we could help!
@עידןלביא-ת3נ
@עידןלביא-ת3נ 2 жыл бұрын
The Only one that help me found the right soultion, saved my day! Thank you
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad it helped!
@tommytom9407
@tommytom9407 9 ай бұрын
Been trying to work this out of hours. Thank you so much 👍
@romansturza1310
@romansturza1310 3 жыл бұрын
Good job Matthew! Thank you
@mariemherreromedina2048
@mariemherreromedina2048 2 жыл бұрын
Thanks for the explanation! I wonder if this can be used when having incremental refresh configured.
@xiajunjim
@xiajunjim 2 жыл бұрын
This is Epic, saved me loads of time! Appreciated!
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad it helped!
@awesh1986
@awesh1986 2 ай бұрын
You have been a life saver for me.
@jrafaelmartinez9965
@jrafaelmartinez9965 3 ай бұрын
Amazing!!! This save my query, thanks so much!!
@ekaterinavolkova4348
@ekaterinavolkova4348 11 ай бұрын
You're my hero! It works! Thank you very much!
@GaryMillerUK
@GaryMillerUK Жыл бұрын
Perfect! Solved my problem. Thanks👍
@reileybergin10
@reileybergin10 3 жыл бұрын
Worked! Thanks Matt!
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
Glad it helped!
@alexdenham85
@alexdenham85 7 ай бұрын
Matt is there a good solution for databases at scale? Or is your only option to de-dupe the source table / create a view? When using buffer I'm finding it just doesn't scale to my dataset.
@Maxlippens
@Maxlippens Жыл бұрын
Helped me a lot ! thanks for sharing this solution
@alison434
@alison434 2 жыл бұрын
Just what I needed, thank you!
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
You're welcome! Glad to help (:
@floriansorin2728
@floriansorin2728 4 ай бұрын
thanks a lot that was my today probleme, i'm glad i found this video 👍
@ljsky
@ljsky 2 жыл бұрын
Thanks for the solution!
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
glad we could help!
@marcosfilho1815
@marcosfilho1815 29 күн бұрын
Thank you very much, very useful information.
@justinbregman9174
@justinbregman9174 Жыл бұрын
Great video, I re-reference it all the time
@juliane1mota
@juliane1mota Жыл бұрын
Can I like it a million times??? Loved this!
@rizvanmammadov137
@rizvanmammadov137 2 жыл бұрын
Thanks a lot. Was just looking for this workaround.
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad I could help
@SteveShishani
@SteveShishani 3 жыл бұрын
Thanks, Matthew! It works as explained. How would you use this with DAX in Power BI in conjunction with Calculate and DistinctCount?
@tytytherugbyguy
@tytytherugbyguy 2 жыл бұрын
Very well explained!
@KollainCanada
@KollainCanada 10 ай бұрын
Life Saver. thank you
@justinlane3306
@justinlane3306 2 жыл бұрын
Thank You - this saved me today!
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad to help!
@kennethskinner7727
@kennethskinner7727 2 жыл бұрын
Wow - I never would have found the buffer fix. This may have saved me another day of beating my head against a wall!
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad it helped!
@santhoshikrishnakanthmulla9691
@santhoshikrishnakanthmulla9691 3 жыл бұрын
good one. i didn't know that .
@DanielADamico
@DanielADamico 3 жыл бұрын
Nice tip!👏👏
@pawelwidawski7886
@pawelwidawski7886 Жыл бұрын
Great video! Helped me a lot, thanks :)
@Savastan0s
@Savastan0s Жыл бұрын
Thanks, exactly what I needed!
@MK-ni6gs
@MK-ni6gs 3 жыл бұрын
Excellent, thank you.
@sonetmollick4630
@sonetmollick4630 2 жыл бұрын
Awesome Matthew. lots of thanks :) It works for me, before I had to create a long DAX code to get the same result.
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad it helped!
@ehteshamali2893
@ehteshamali2893 2 жыл бұрын
Hi there, Great lecture sir. I had a question: How do you remove duplicates within a duplicated column in Power BI? Whenever I try to remove the duplicates via the power query editor, it removes the duplicated from both columns; original and the duplicated one. Please help.
@rohittyagi2594
@rohittyagi2594 Жыл бұрын
so simple and perfect - thank you!!!!
@jeansepulveda2577
@jeansepulveda2577 Жыл бұрын
Thanks so much!!!! this helped me.
@PragmaticWorks
@PragmaticWorks Жыл бұрын
Glad it helped!
@denyskrysanov7590
@denyskrysanov7590 3 жыл бұрын
Thanks, Man. Great Solution !
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
You're welcome!
@MichaelDee2
@MichaelDee2 Жыл бұрын
Simply fantastic!
@malchicken
@malchicken 3 жыл бұрын
Good to know, thank you :)
@gillesbonniot315
@gillesbonniot315 3 жыл бұрын
Thank you so much ... I was looking for why my remove duplicates was not working and this was the missing component.
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
Glad it was helpful!
@louwjhl7227
@louwjhl7227 Ай бұрын
Now that is an explanation that I won't forget! Thanks!! @ChatGTP - please take note
@alphatolentino2837
@alphatolentino2837 5 ай бұрын
Thank you for sharing this! 😊
@patyhelenfl
@patyhelenfl 2 жыл бұрын
That was great!!! thank you so much!!!
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
You're so welcome!
@emuss2760
@emuss2760 Жыл бұрын
life saver bro!! Thank you
@rezag.7349
@rezag.7349 2 жыл бұрын
Thank you for this excellent workaround. I just have one question in regards to the root cause as you explained it. The Advanced Editor allows us to let a step occur after any of previous steps. example: step 4 could be specified to be executed based on the outcome of step 2 (and thereby step 3 would be skipped). Does this indicate that Power Query has to follow the order of steps as specified in code (via Advanced Editor). So is the root cause perhaps something else e.g. a bug?
@SystemsDeptKIOCL
@SystemsDeptKIOCL 3 жыл бұрын
wonderfully useful tip I am so very grateful to you
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
Glad it was helpful!
@chisamuel7168
@chisamuel7168 3 ай бұрын
Sir, thank you so much this is just awesome
@amithmihiranga1913
@amithmihiranga1913 Жыл бұрын
Amazing I was finding it hard to solve this one 👍
@himanshunagpalca
@himanshunagpalca 2 ай бұрын
excellent trick , thanks for sharing
@OmarMcIver
@OmarMcIver 2 жыл бұрын
Killer. Really helped. Thank you!
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Glad it helped!
@enzioquartero6367
@enzioquartero6367 2 жыл бұрын
Amazing! Thank you for this!
@Linriel777
@Linriel777 4 ай бұрын
Great video. This solved my problem. I thought I was to stupid to remove duplicates...
@croquetando
@croquetando Жыл бұрын
Thanks, so helpful and to the point :)
@jonellara5751
@jonellara5751 8 ай бұрын
Thank you Sir! It works for me
@mfachry3012
@mfachry3012 4 ай бұрын
OMG, thankyou verymuch this is really works
@martinlatal_
@martinlatal_ Ай бұрын
This is amazing! Thanks
@nbcctest1160
@nbcctest1160 3 жыл бұрын
Thank you! This is exactly what I needed!!!!
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
Glad it was helpful!
@daronodonald9662
@daronodonald9662 2 жыл бұрын
When I apply the Table.Buffer, even though it's only the 2nd to last step, it completely kills my query and none of my queries load. Any ideas?
@IsaacSomuah
@IsaacSomuah 4 ай бұрын
This worked for me Thanks man
@thedynermite
@thedynermite Жыл бұрын
I got very angry with power query here. The change in logic compared to basic excel made no sense. Thank you for explaining both the problem (+ power query logic) and the solution clearly and effectively.
@keiljuanaphillips9663
@keiljuanaphillips9663 2 жыл бұрын
Thank you so much!
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
You're welcome!
@davissonmonteiro7856
@davissonmonteiro7856 Жыл бұрын
On point, thanks that was so helpful.
@dineshsuranga4290
@dineshsuranga4290 2 жыл бұрын
Thank you.
@PragmaticWorks
@PragmaticWorks 2 жыл бұрын
Welcome!
@mrvulpus
@mrvulpus 3 жыл бұрын
Thanks Matt, this made my day!
@PragmaticWorks
@PragmaticWorks 3 жыл бұрын
Glad to hear it!
@balupriya729
@balupriya729 Жыл бұрын
Really helpful thx for the tip
@PandyaDarshit
@PandyaDarshit Жыл бұрын
What to do if I have to take a date from the date slicer (From visual) then Sort value based on some columns then keep the most recent one
@joseraulesquivelugarte7120
@joseraulesquivelugarte7120 Жыл бұрын
Great! Thaks a lot!
@PragmaticWorks
@PragmaticWorks Жыл бұрын
You are welcome!
Power BI Remove Duplicate Records And Keep Most Recent
7:53
The Algebra Teacher POWERS to BI
Рет қаралды 42 М.
Top 10 Power BI Features You Should Be Using Right Now!
17:24
How to Power BI
Рет қаралды 70 М.
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 253 М.
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 1,7 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 107 МЛН
Understanding Row Context in DAX using Power BI
19:47
Pragmatic Works
Рет қаралды 43 М.
Grouping and Binning in Power BI
13:25
Pragmatic Works
Рет қаралды 16 М.
10 Power Query tips EVERY user should know! | Excel Off The Grid
7:27
Excel Off The Grid
Рет қаралды 19 М.
10 Steps to Optimize Your Data Model in Power BI
13:41
How to Power BI
Рет қаралды 59 М.
Advanced Power BI: Solving the Hard Problems
1:00:26
Pragmatic Works
Рет қаралды 126 М.
How To Remove Duplicate Rows In Power Query Based On Conditions
11:41
Enterprise DNA
Рет қаралды 40 М.
How to Use VLOOKUP in Excel (free file included)
15:15
Leila Gharani
Рет қаралды 255 М.
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 253 М.