Remove duplicates based on sort order - Power BI Tips & Tricks #22

  Рет қаралды 59,277

Curbal

Curbal

Күн бұрын

In this video I will show a trick on how to remove duplicates based on sort order in Power BI / Power Query.
Looking for a download file? Go to our Download Center: curbal.com/don...
SUBSCRIBE to learn more about Power and Excel BI!
/ @curbalen
Our PLAYLISTS:
Join our DAX Fridays! Series: goo.gl/FtUWUX
Power BI dashboards for beginners: goo.gl/9YzyDP
Power BI Tips & Tricks: goo.gl/H6kUbP
Power Bi and Google Analytics: goo.gl/ZNsY8l
ABOUT CURBAL:
Website: www.curbal.com
Contact us: www.curbal.com/...
QUESTIONS? COMMENTS? SUGGESTIONS? You’ll find me here:
► Twitter: @curbalen, @ruthpozuelo
► Google +: goo.gl/rvIBDP
► Facebook: goo.gl/bME2sB
#SUBSCRIBE #CURBAL
► Linkedin: goo.gl/3VW6Ky

Пікірлер: 183
@MattiasGregersen
@MattiasGregersen 4 жыл бұрын
I just wanted to say thank you for this - I realize that it is an older video, but jesus I was having headaches on this one.
@CurbalEN
@CurbalEN 4 жыл бұрын
🥳 Thrilled to hear that the old videos are still useful and you got the help you needed! Thanks for sharing :) /Ruth
@adolfocamarillo3550
@adolfocamarillo3550 3 жыл бұрын
This solved the issue I was having. Very well explained. I'll share this trick with my team. Thank you!
@BalurPoco
@BalurPoco Күн бұрын
Thank you very much, that was a great help to me, because I can still use this method today. From a CSV of a few million lines, I wanted to discard duplicates after sorting. Based on the video, I succeeded and now the data fits within the 1 million row excel worksheet limit. Thanks again, have a nice day!
@CurbalEN
@CurbalEN 4 сағат бұрын
You too!
@phildanley7285
@phildanley7285 2 жыл бұрын
Thank you very much Curbal for this video. I was tearing out my hair trying to remove duplicate rows based upon the values in another column. I wasn’t sorting by dates but I was able to create a numerical column and sort that in descending order. Duplicates are gone and the rows I wanted to keep remain. Thank you again!
@CurbalEN
@CurbalEN 2 жыл бұрын
Well done!!
6 жыл бұрын
¡Esto ha quedado como anillo al dedo! Justamente ayer, necesitaba algo como lo que explicas aquí, porque un modelo de datos sobre inventarios al indexar los últimos cambios de diversos productos duplicaba los registros por la cantidad de cambios de precio. Y al eliminar el código del producto no podía mantener el ultimo cambio, es decir, la fecha. Muy agradecido por tus enseñanzas.
@CurbalEN
@CurbalEN 6 жыл бұрын
Muchas gracias José y gracias for compartirlo en twitter! /Ruth
@sue_bayes
@sue_bayes 4 жыл бұрын
Perfect, just solved a problem in seconds. Thank you
@guybowdler2460
@guybowdler2460 11 ай бұрын
Perfect, thank you! Well explained video, clearly demonstrating the problem which really helps determining whether the solution is applicable. Thank you very much:)
@MarkCBB86
@MarkCBB86 6 жыл бұрын
So happy I found this Video, I would have assumed the default behaviour would be the same as Excel. Thank you
@CurbalEN
@CurbalEN 6 жыл бұрын
You welcome Mark, I thought the same too! On another note, ..,So cool that those older little videos are still useful :) /Ruth
@ukaszbiaasik1918
@ukaszbiaasik1918 3 жыл бұрын
You just saved my and my co-workers life. Thank You !
@CurbalEN
@CurbalEN 3 жыл бұрын
🥳🥳🥳
@bendreessen2809
@bendreessen2809 Жыл бұрын
Thank you! That video saved me hours and was easy to understand and implement!
@oscargushiken8310
@oscargushiken8310 2 жыл бұрын
Thank you! I was having this specific problem and you gave me the answer!
@OCCmorrow
@OCCmorrow 6 жыл бұрын
Thank you for this tip - very useful! I will say though, I didn't realize that the power query M function was Table.Buffer. I thought that because your table was named Buffer I should use my table name (which is Products), and I kept getting an error. Not until I tried using Table.Buffer did it work. Just wasn't quite clear in the video. But otherwise, this is a great tip, and fixed my problem.
@CurbalEN
@CurbalEN 6 жыл бұрын
Thanks for the clarification! I will pin your post in case others find it useful. /Ruth
@ruairihourihane6044
@ruairihourihane6044 4 жыл бұрын
me too!! :) we got there in the end!
@bc67
@bc67 2 жыл бұрын
Great one that I haven't seen before. Thank you for sharing.
@jestinrajan946
@jestinrajan946 3 ай бұрын
Thank You... This video was a life saver even though it was posted 7 years ago 🎉.
@CurbalEN
@CurbalEN 3 ай бұрын
Power query is evergreen 😃
@breopardo6691
@breopardo6691 4 жыл бұрын
Clearly explained, neat trick to actually remove duplicates controlling what duplicates to remove. Thank you!
@CurbalEN
@CurbalEN 4 жыл бұрын
You welcome! /Ruth
@danilochavez4167
@danilochavez4167 4 жыл бұрын
Hi Ruth. I was asking for this solution in the comment section on a different video of yours, and did not realize you made this one! Thanks a ton!
@CurbalEN
@CurbalEN 4 жыл бұрын
I have over 500 videos, a tip is to search on my KZbin channel or add Curbal to your google search ;) /Ruth
@anselmojg
@anselmojg 6 жыл бұрын
Thank you (Gracias!) ... This trick allowed to workaround a limitation with PowerApps working with up to 2000 items in SharePoint lists.... (long story... with a happy end thanks to this!)
@CurbalEN
@CurbalEN 6 жыл бұрын
De nada ! Me alegro que te haya ayudado :) /Ruth
@charl1300
@charl1300 4 жыл бұрын
This helped me fix something I've been struggling with, thank you.
@me4175
@me4175 6 жыл бұрын
Never would have figured this out, thanks a lot!
@CurbalEN
@CurbalEN 6 жыл бұрын
You welcome and glad it was useful! /Ruth
@hilmanagung
@hilmanagung 4 жыл бұрын
Thank you so much Ruth. This is something I have been struggled for several days.
@tomn6921
@tomn6921 4 жыл бұрын
I had this problem collecting MS Forms data and I wanted to accept updated entries and then delete the older rows, and keep the younger. And your video showed me how to do that so BIG thank you.
@CurbalEN
@CurbalEN 4 жыл бұрын
Glad it helped you :)
@Benjamino1987
@Benjamino1987 4 жыл бұрын
Incredibly helpful and elegant solution! Thnx a lot for sharing this!
@CurbalEN
@CurbalEN 4 жыл бұрын
My pleasure!! /Ruth
@modsavant
@modsavant 3 жыл бұрын
Easier way: sort first as needed, then create Index Column. Now remove duplicates. Done. By creating an Index Column, you are overriding the prior back-end Index that was overriding your sort. With this new Index column that you created AFTER your sort, only the first duplicates are kept per your sort order. After removing duplicates, just delete Index column and move on.
@TayuanRebelo
@TayuanRebelo Жыл бұрын
Passing by to say you saved the day! Thanks!
@yaelzi9996
@yaelzi9996 6 ай бұрын
You saved my day ! Thanks
@KashifAlvi2009
@KashifAlvi2009 5 жыл бұрын
Thank you so much!! It was mind boggling, I kept on going back and forth and tried alternating in ascending/descending order (for dates), but whether the date order was descending or ascending, it didn't make a difference to Power BI. Explained with such ease.
@CurbalEN
@CurbalEN 5 жыл бұрын
Wonderful! Glad it was useful! :) /Ruth
@andrewallen8288
@andrewallen8288 4 жыл бұрын
Thank you so much for this. It was exactly what I needed. Thank you!
@haroldenriquepajueloaraujo7631
@haroldenriquepajueloaraujo7631 4 жыл бұрын
Gracias Ruth, ya no sabia que hacer y recordé que siempre que tengo dudas recorro a tus videos que son excelentes.Gracias desde Perú
@CurbalEN
@CurbalEN 4 жыл бұрын
Gracias! /Ruth
@cynthiahuallanca6310
@cynthiahuallanca6310 4 жыл бұрын
Thank you for sharing this super valuable tip!! Spent hours trying to find out why my remove duplicated didn't work after a particular sorting step. Thank you
@NorbertoVeraReatigaNVR
@NorbertoVeraReatigaNVR 7 жыл бұрын
Gracias Ruth Muy buen vídeo!, Nos mantiene muy actualizados de contenido para mejorar nuestro desempeño en el manejo de datos... a sido un año muy productivo siguiendo sus excelentes trabajos de divulgación...
@CurbalEN
@CurbalEN 7 жыл бұрын
+Norberto Vera Reatiga Muchas gracias Norberto! Todo un verdadero placer poder contribuir en esta comunidad tan increíble y muchas gracias por tu apoyo! Saludos desde España:) /Ruth
@dilip1able
@dilip1able 3 жыл бұрын
Thanks a ton, this helped me to fix the bug. You are awesome.
@Stray.wanderer
@Stray.wanderer 4 жыл бұрын
You are an amazing teacher and I will always be grateful to you for these awesome videos.
@CurbalEN
@CurbalEN 4 жыл бұрын
Thanks!! 😊
@samirvaghasiya9918
@samirvaghasiya9918 6 ай бұрын
I have this similar scenario. Thank you very much.
@bensutton7889
@bensutton7889 6 жыл бұрын
Thank you Much!! You saved me a lot of headache and time!
@CurbalEN
@CurbalEN 6 жыл бұрын
This type of feedback is music to my ears! I loooove productivity tips! Congrats! /Ruth
@stuartmynard
@stuartmynard 2 жыл бұрын
Great tip. Thank you!
@nemo9396
@nemo9396 2 жыл бұрын
Thanks for being concise :D
@fabiobecamp
@fabiobecamp 5 жыл бұрын
You resolved my life with this trip, thank you so much :)
@CurbalEN
@CurbalEN 5 жыл бұрын
Music to my ears :))) /Ruth
@zainubnajmudin9181
@zainubnajmudin9181 4 жыл бұрын
Actual life saver
@JFarr49er
@JFarr49er 3 жыл бұрын
Really handy video thank you. I'm looking to solve a similar problem, I want to do a distinct count on a visual, based on custom column which is related to dates. I thought that this would be a workaround as removing duplicates would give me the distinct values in date order. I was wondering If i kept the buffer table based on order date, then did a distinct count on a visual, would this work in the same way?
@barathankannaiah9048
@barathankannaiah9048 2 жыл бұрын
Thank you Curbal. I need the same in my dataflow, where I can't use table.buffer. Is there any alternative ?
@purpleisiscat
@purpleisiscat 2 жыл бұрын
Hi. I realise this is an older video but many thanks for the tip! It works great in Desktop but doesn't seem to in the Power BI web service, specifically dataflows. Is there an alternative in this case? Thanks.
@ruairihourihane6044
@ruairihourihane6044 4 жыл бұрын
Really Really great. Simple, and exactly the problem i was having issues with! would say that "Buffer etc" is exactly what you paste and doesnt depend on the name of your table. great Video though, thanks
@jonashva7704
@jonashva7704 5 жыл бұрын
Great, just what I was looking for. Thanks!
@CurbalEN
@CurbalEN 5 жыл бұрын
🎉🎉🎉 /Ruth
@MrJoaomcs
@MrJoaomcs 4 жыл бұрын
Your video saved my project! Thank you!
@CurbalEN
@CurbalEN 4 жыл бұрын
My pleasure!!
@Akirmax
@Akirmax 4 жыл бұрын
Simply what I need to know...Thank you a lot!
@JordivanKaam
@JordivanKaam Жыл бұрын
Do you also have an explanation on how to execute this for a directquery in Power BI?
@andresantos1123
@andresantos1123 3 жыл бұрын
I love you. You saved me! Thanks
@angus6095
@angus6095 6 жыл бұрын
Genius! Just what I needed. Thank you!
@CurbalEN
@CurbalEN 6 жыл бұрын
Yey!! Happy friday! /Ruth
@exiexijtzoe3564
@exiexijtzoe3564 4 жыл бұрын
omg... just what I needed, remove duplicates was working fine in one report and not in the other.... yeah for ""buffer.table" ;) awesome Ruth, thx.
@CurbalEN
@CurbalEN 4 жыл бұрын
👏👏 /Ruth
@TheChouchoune75
@TheChouchoune75 6 жыл бұрын
Great and simple trick. Thx a lot!
@CurbalEN
@CurbalEN 6 жыл бұрын
You welcome !! :) /Ruth
@lumitic774
@lumitic774 4 жыл бұрын
LIFE SAVER AS ALWAYS CURBAL! life saver!
@CurbalEN
@CurbalEN 4 жыл бұрын
Yey! /Ruth
@lumitic774
@lumitic774 4 жыл бұрын
@@CurbalEN I was trying to figure it out with multiple formulas and nothing. Such a simple solution! any feedback in processing needs with this buffer code? because this is for a table with sharepoint connection with 1000 new lines/week?
@CloudhoundCoUk
@CloudhoundCoUk 7 жыл бұрын
Sadly removing duplicate data entries is an essential skill and this excellent video presentation explains in an easy to understand way just how you can do that.
@CurbalEN
@CurbalEN 7 жыл бұрын
+Cloud Hound Thanks Christopher :)
@Edgard422
@Edgard422 3 жыл бұрын
Excellent explanation, thank you very much.
@CurbalEN
@CurbalEN 3 жыл бұрын
My pleasure :)
@PedroCabraldaCamara
@PedroCabraldaCamara 3 жыл бұрын
cool trick Ruth! Thank you so much
@kabis4572
@kabis4572 3 жыл бұрын
Fab! thank you so much for this. Well explained.
@CurbalEN
@CurbalEN 3 жыл бұрын
Yey!!
@ngocnamnguyen8096
@ngocnamnguyen8096 3 жыл бұрын
Thank you for sharing. I have another case related Remove Duplicate - The data before and after I doing Remove Duplicate is not matching ( I see it when I using filter: If I do Remove Duplicate first then Filter so the data show missing some rows, if I do Filter first then do Remove Duplicate, it's ok (but if I do like this, I can not looking for another if I need ). After apply Table.Buffer, it's no help. Do you have any ideas?
@emilio6117
@emilio6117 4 жыл бұрын
Its really helpful!!!! Thank you so much for this!
@manttone
@manttone 4 жыл бұрын
Thanks. Just what I was looking for.
@CurbalEN
@CurbalEN 4 жыл бұрын
Awesome :) /Ruth
@ivanmenendez5389
@ivanmenendez5389 3 жыл бұрын
Thanks for sharing... min 4:00
@B4H4MuTT
@B4H4MuTT 6 жыл бұрын
Great solution. I've seen other solutions in the community waaaay longer and uglier. Congrats!
@CurbalEN
@CurbalEN 6 жыл бұрын
Wonderful! Glad it was useful :) /Ruth
@alexandresuberbielle7446
@alexandresuberbielle7446 2 жыл бұрын
Thanks a lot! Simple and smart!
@CurbalEN
@CurbalEN 2 жыл бұрын
Wonderful :)
@sonetmollick4630
@sonetmollick4630 2 жыл бұрын
Awesome, it works for me. Thanks :)
@sugarcube7984
@sugarcube7984 4 жыл бұрын
Very helpful...thanks
@MrBlets
@MrBlets 5 жыл бұрын
Thank you Ruth. Works like a charm
@CurbalEN
@CurbalEN 5 жыл бұрын
Music to my ears!! :) /Ruth
@pocbuyd
@pocbuyd 5 жыл бұрын
ur a lifesaver
@CurbalEN
@CurbalEN 5 жыл бұрын
😊 /Ruth
@RTAEON
@RTAEON 6 жыл бұрын
Awesome, thank you!
@CurbalEN
@CurbalEN 6 жыл бұрын
You welcome Rolf! /Ruth
@piacastro7233
@piacastro7233 4 жыл бұрын
Awesome!!! Thank you so much!
@gustavovillelarodrigues927
@gustavovillelarodrigues927 3 жыл бұрын
Thank you so much! It helps a lot
@CurbalEN
@CurbalEN 3 жыл бұрын
Wonderful!
@uweseidel8784
@uweseidel8784 3 жыл бұрын
Woohooo! This is awesome. Thanks a lot for this one
@evansjam316
@evansjam316 2 жыл бұрын
Amazing video, thank you very much :)
@CurbalEN
@CurbalEN 2 жыл бұрын
Thanks for the feedback !
@ziondiaz7126
@ziondiaz7126 4 жыл бұрын
HI there, This Works but Why does the Buffer Table change the sort format?
@SuperYanab
@SuperYanab 5 жыл бұрын
Thank you! It was mind boggling indeed!
@CurbalEN
@CurbalEN 5 жыл бұрын
Thanks Yana! /Ruth
@elfridhasman4181
@elfridhasman4181 4 жыл бұрын
Thank You Very Much
@piscisknight
@piscisknight 3 жыл бұрын
THANKS! Awesome tip
@CurbalEN
@CurbalEN 3 жыл бұрын
🥳🥳
@DrDrooo
@DrDrooo 3 жыл бұрын
Thank you so much!
@CurbalEN
@CurbalEN 3 жыл бұрын
You welcome!!
@John-bo2ut
@John-bo2ut 3 ай бұрын
Thank you
@jptolledo
@jptolledo 3 жыл бұрын
Thank you. You helped me a lot
@CurbalEN
@CurbalEN 3 жыл бұрын
Wonderful!
@robedias31
@robedias31 4 жыл бұрын
Thank you very much for this amazing trick.
@CurbalEN
@CurbalEN 4 жыл бұрын
Glad it was helpful! /Ruth
@KirtiKumarNagar
@KirtiKumarNagar 4 жыл бұрын
Thanks a lot.
@edgarcr21
@edgarcr21 4 жыл бұрын
Great video. Thanks for sharing. I was wondering what would happen if, let's say, I have multiple records on the last month that I want to keep. So, apparently, this will remove *all* duplicates, including the ones that i have on the last month, leaving me with just one single record from the latest month. Check it out: records dates r1 mar-2020 r1 mar-2020 r2 feb-2020 r1 jan-2020 after #buffer: records dates r1 mar-2020 r2 feb-2020 Any ideas how can i keep both instances of r1 from mar-2020? Now, obviously, from the "records" column perspective these 2 records are indistinguishable but there could be other columns that could make it worth keeping them.
@ImranAmiKh4n
@ImranAmiKh4n 3 жыл бұрын
thank you!
@namkce
@namkce 4 жыл бұрын
Thankyou!! this was very helpful! :D
@CurbalEN
@CurbalEN 4 жыл бұрын
Yey! /Ruth
@mehdihammadi6145
@mehdihammadi6145 5 жыл бұрын
Thank you Ruth very helpful
@CurbalEN
@CurbalEN 5 жыл бұрын
You welcome ! /Rutj
@cparker4486
@cparker4486 4 жыл бұрын
Fantastic.
@victornzemeke1763
@victornzemeke1763 Жыл бұрын
Thanks!!
@lucasamorim2420
@lucasamorim2420 6 жыл бұрын
Thank you!!!
@CurbalEN
@CurbalEN 6 жыл бұрын
You welcome! /Ruth
@mountainmonk2
@mountainmonk2 4 жыл бұрын
Love it thanks !!
@darlyngtrejo6800
@darlyngtrejo6800 4 жыл бұрын
Thank u! This trick was really useful :)
@CurbalEN
@CurbalEN 4 жыл бұрын
Yey!!🥳🥳
@Grant094
@Grant094 5 жыл бұрын
super helpful! thank you so much!
@CurbalEN
@CurbalEN 5 жыл бұрын
You welcome Grant! /Ruth
@oscarcampos3054
@oscarcampos3054 5 жыл бұрын
Great trick!!! Thank you so much.
@CurbalEN
@CurbalEN 5 жыл бұрын
You welcome! /Ruth
@edgarabgar4633
@edgarabgar4633 4 жыл бұрын
Thanks a lot
@AjayKumarparmar
@AjayKumarparmar 4 жыл бұрын
problem is if you like to remove alternate rows and before that let us say you have sorted the table by serial numbers like 1,1,1,2,2,2,2,3,3,3,3 ,,,,,so i you trying to remove alternate rows starting from 5th row and remove 4 rows and keeping 4 rows, it is removing different rows...not the ones which are sorted in previous step even if you use table.buffer...thats a challenge now....dear Ruth.. removing alternate rows does not work if you have sorted the data...it changes the indexes ...even if you have used table buffer...i wanted to use such kind of a function which can keep latest table in memory.....but alas, it could not work for me
@lorennabastos7765
@lorennabastos7765 3 жыл бұрын
Thanks a lot Ruth!
@japarell
@japarell 3 жыл бұрын
Super! thanks a lot!
@CurbalEN
@CurbalEN 3 жыл бұрын
Yey!! 🥳🥳
@emekandiasor3468
@emekandiasor3468 5 жыл бұрын
Quite helpful. Thanks alot
@CurbalEN
@CurbalEN 5 жыл бұрын
You welcome :) /Ruth
@martinskoglund2664
@martinskoglund2664 4 жыл бұрын
Great but I have a simular problem the only diffrence is that i don´t have dates. I was thinking power query could keep track of when the data was important and save the duplicate that was imported last. We have daily reports that I put in an folder that in its turn is merged with another report that hav comments on the buissnies cases. An order changes status but i don´t have the date of change date in the data extraction flow.
@luisalbertorocham8419
@luisalbertorocham8419 5 жыл бұрын
Ruth, you are the best :) thank you
@CurbalEN
@CurbalEN 5 жыл бұрын
Thank you!! :) /Ruth
@matsingh9490
@matsingh9490 3 жыл бұрын
thanks a lot. helped it
@CurbalEN
@CurbalEN 3 жыл бұрын
All I need to hear :)
@jonathanacosta3362
@jonathanacosta3362 5 жыл бұрын
Really usefull! Thank you!
@CurbalEN
@CurbalEN 5 жыл бұрын
Yey!! Happy it worked :) /Ruth
@johnlevengood
@johnlevengood 2 жыл бұрын
You’re amazing
@CurbalEN
@CurbalEN 2 жыл бұрын
You too :)
@bluex5115
@bluex5115 3 жыл бұрын
thanks
@thaisjustidetoledo130
@thaisjustidetoledo130 3 жыл бұрын
thank you!!!!!
@CurbalEN
@CurbalEN 3 жыл бұрын
🥳🥳🥳
@DCal1999
@DCal1999 6 жыл бұрын
Awesome
@CurbalEN
@CurbalEN 6 жыл бұрын
Thanks! :) /Ruth
Power BI Remove Duplicate Records And Keep Most Recent
7:53
The Algebra Teacher POWERS to BI
Рет қаралды 41 М.
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
Это было очень близко...
00:10
Аришнев
Рет қаралды 1,3 МЛН
«Кім тапқыр?» бағдарламасы
00:16
Balapan TV
Рет қаралды 284 М.
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 253 М.
How To Remove Duplicate Rows In Power Query Based On Conditions
11:41
Enterprise DNA
Рет қаралды 40 М.
Remove duplicates without losing any info | Excel Power Query
4:18
Excel with Paolo
Рет қаралды 30 М.
Power Query - Faster & Easier Parameters
13:38
BCTI
Рет қаралды 39 М.
How to Move Data Automatically Between Excel Files
11:37
Kenji Explains
Рет қаралды 147 М.
Remove Duplicates Using Power Query | Excel Tips & Tricks
4:12
Excel with Paolo
Рет қаралды 12 М.
REDUCE the # of measures with Calculation Groups In Power BI
9:24
Guy in a Cube
Рет қаралды 226 М.
The How and Why of Power BI Aggregations
9:01
Guy in a Cube
Рет қаралды 105 М.
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34