Quick Vlookups in Power Query!

  Рет қаралды 56,054

Goodly

Goodly

Күн бұрын

Пікірлер: 98
@GoodlyChandeep
@GoodlyChandeep 3 жыл бұрын
Use this technique on smaller datasets which need enriching - like Dimension tables. Don't alternate this with Relationships between fact and dimension tables! Check out our newly launched M Language course ↗ - goodly.co.in/learn-m-powerquery/
@ratneshbansal5139
@ratneshbansal5139 3 жыл бұрын
Hi, I tried using this technique to link and pull data from 3 different queries. Step-1: Pull a variable from Query 2, this one is kind of helper column; Step-2: Pull the final value from Query 3, based on the variable in helper column from Query 2; But at the very first step it is showing identifier error… it is not taking the reference to Query 2! In the video you pulled data from a simple query from a table (dimension table); What is the limit of this technique?
@maxsalfer
@maxsalfer 2 жыл бұрын
That’s right! Merge is the only way to go for large tables.
@vijaykrishnan4151
@vijaykrishnan4151 3 жыл бұрын
I just love your videos, just straight to the point, no beating around. No grand entrance :). Thank you for such valuable power query tricks. I always have these questions in mind. You are answering them. I have found my love in power query again. Thanks, Chandeep. Keep it up.
@GoodlyChandeep
@GoodlyChandeep 3 жыл бұрын
Thanks Vijay! I am glad that my videos are helpful.
@skimpylemon8034
@skimpylemon8034 2 жыл бұрын
FACTS!
@jeromeastier462
@jeromeastier462 2 жыл бұрын
So elegant - i particularly appreciate your approach: you systematically go through the logic first, then show its various applications. I totally agree this channel is VERY underrated
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thanks for your nice words !
@PeterKontogeorgis
@PeterKontogeorgis 3 жыл бұрын
Nice technique. It always seems a lot harder to do lookups than it should be. Any idea on the performance of this approach compared to a merge?
@rikinzayituriki1414
@rikinzayituriki1414 3 ай бұрын
Hi Chandeep, is it posisble to do it with multiple conditions as well?
@georgeww600
@georgeww600 Жыл бұрын
I love your clear and concise KZbin videos. Thank you
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Glad you like them!
@cbhang
@cbhang 4 ай бұрын
Hi, pls suggest if the calculation time with this method will also be lesser than Merge in power query?
@Guilopes99
@Guilopes99 3 жыл бұрын
Very underrated channel! Your content is great, you should position your content in a more KZbin way like "stop doing this in excel, learn this in power query - forget vlookups!!"
@leroyholmes9131
@leroyholmes9131 2 жыл бұрын
Your explanations are excellent. How would you do this if in one table both columns had nested tables and you wanted to add a column to one of the nested tables that pulled data from the other nested table?
@qrsimon
@qrsimon 3 ай бұрын
everytime I learn these small techniques I get exited to learn how to improve on it even more:) this helpes!
@ziomekzedzielni1
@ziomekzedzielni1 Ай бұрын
Would like to see the performance comparison of ur solutions comparing to what normal people uses. In this case that would be even more interesting because I noticed searching with lists is much slower rather than merging on bigger datasets. So even more steps with merging compensated rather than using lists. It's possible I use lists the wrong way so would like to see it on sets with couple thousands rows and 20+ columns
@demris15
@demris15 Жыл бұрын
Great video... very helpful... I would be interested to see a performance comparison with merges vs "vlookups" though ... I've been using this method to create Key columns and there is certainly a performance difference, but it is hard to tell exactly how much
@kumshan1407
@kumshan1407 3 жыл бұрын
Thanks very good technique to do vlookups in power query. Is it an optimized way of doing vlookups in power query? Will it work faster on larger dimension tables like more than 2 lakh rows of data.
@GoodlyChandeep
@GoodlyChandeep 3 жыл бұрын
Although 2 lakh rows isn't much. It don't recommend this technique. Use relationships as much as possible.
@wayneedmondson1065
@wayneedmondson1065 3 жыл бұрын
Hi Chandeep. Love tricks like this! So efficient and elegant. Thanks for sharing :)) Thumbs up!!
@krishnakishorepeddisetti4387
@krishnakishorepeddisetti4387 2 жыл бұрын
Bro... Amazing content.... i tried this ...but it is consuming more time than normal merge ..any thoughts ?? My request would be to create a dedicated playlist for m language.... It will help a lot of people
@brandonm2099
@brandonm2099 Жыл бұрын
Also, a little over my head or I didn't get the initial references and had a fact table that had duplicates. Wasn't sure it that would work or if no duplicates allowed. Either way, the merge seemed faster to create although I'm assuming more latency probably.
@georgeww600
@georgeww600 Жыл бұрын
Hi Chandeep, I have to keep recreating the transformations because I can't figure out how to apply saved Advanced Editor M-Code to new data. My data is Sept 2020 and Sept 2021, Oct 2020 and Oct 2021, and Nov 2020 and Nove 2021. I want to keep the transformed data separate for each month. I'd like the pairs of months/years to start out in different folders. I keep having to recreate the action steps.
@davidlopez-fe2lb
@davidlopez-fe2lb 2 жыл бұрын
what if our leaves table had 7 columns we wanted to bring over instead of 1 column, is there a way to pull all seven or would we need to do this for each column?
@zdzislawkes
@zdzislawkes 2 жыл бұрын
Hi. I am wondering what are the differences between these approaches (e.g. does this affect the query performance?): let leavelist = Leaves [Leaves Count], position = List.PositionOf (Leaves [EMP ID], [EMP ID]) in leavelist {position} vs Leaves [Leaves Count] {List.PositionOf (Leaves [EMP ID], [EMP ID])} May be is it just cosmetics?
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Yes just the cosmetics
@rohitkarnani0506
@rohitkarnani0506 Жыл бұрын
Hi Chandeep, this was very helpful, thankyou, I have used the same in one of the automation process, it works well. But want to understand is there any limitation on this. The dataset i used has more than 1000 rows and lookup field is approx 150
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
It might be slow on large datasets.
@YvesAustin
@YvesAustin Жыл бұрын
Thank you Chandeep; yet another use case of lists! Reading your comment here Chandeep: "use this on smaller data sets". Can I apply this to a table with 100,000rows? I have exactly this problem on a very large scale. The merge takes a long time. I am considering testing Table.Buffer or maybe better put it all in the Data Model and DAX it all out!
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Merges will be faster than this approach. Why can't you ditch the merge in PQ and instead work with relationships in PowerBI. They are super snappy.
@YvesAustin
@YvesAustin Жыл бұрын
@@GoodlyChandeepYep! That is what I am thinking. Won't be in BI, but Excel Power Pivot will work! 👍👍
@UlyssesHaq
@UlyssesHaq 3 жыл бұрын
Excellent knowledge, thank you for sharing. You say this is good for dimension tables, does this mean this would not be good for doing a lookup against fact tables, with say.. 6million rows... Performance issues maybe?
@garysmith3777
@garysmith3777 5 ай бұрын
Great video, Is this method faster than a merge?
@GoodlyChandeep
@GoodlyChandeep 5 ай бұрын
nopes.. merges are a lot faster
@prateekkalra3864
@prateekkalra3864 2 жыл бұрын
Hey, Can you explain on how to reverse first and last name with comma in power query from a certain column?
@yussufabdallah4826
@yussufabdallah4826 3 жыл бұрын
thank you so much we can do that also without variables and without let-in "Leaves[LeaveCount]{List.PositionOf(Leaves[EMP ID],[EMP ID])}"
@aryansena7290
@aryansena7290 3 жыл бұрын
Hi , Can you create a table as per slicer selection .. consider I'd column in a rows like 1,2,3,4. And a slicer using this I'd column.. now if I select I'd from slicer 3 then a table will be created which has all data with I'd 3. Please let me know if requirement is not clear
@srininvasrao7629
@srininvasrao7629 2 жыл бұрын
Dear sir, your power query teaching and videos are done in a professional way, i all ways follow your video!!! I have a query !!! When I am handling with tables having above 5 lakhs when I have to compare the data tables with another master tables Excel is taking long time for retrieving and running query when I am using merged query!!! Can I make the query run faster by using list . Functions / mcode to overcome it , pls suggest to improve query running time ?
@bagnon
@bagnon Жыл бұрын
It seems like Key Match Lookup could have been used as well: Tablename{[Field Name = Condition]}[Column Name]
@FRANKWHITE1996
@FRANKWHITE1996 3 жыл бұрын
Another great video! Thanks for sharing!!
@eysinesvolley-ball6955
@eysinesvolley-ball6955 Жыл бұрын
Awesome, that's super simple and very useful, thanks for taking time to guide us through this good trick!
@marcusmayer1055
@marcusmayer1055 4 ай бұрын
Чим ваш метод кращий за звичайння злиття? (куча, ручної роботи, потрібно відраховувати нумерацію у списках)
@syedaneesdurez7197
@syedaneesdurez7197 2 жыл бұрын
Sir, How to extract mulitiple columns data by using List.PositionOf function rather than using merge. Please advise. Thanks
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
I'd recommend you to use Merge. I suspect that it is faster
@syedaneesdurez8766
@syedaneesdurez8766 2 жыл бұрын
@@GoodlyChandeep Thank you
@alexking8222
@alexking8222 3 жыл бұрын
Another superb video. Thank you very much!
@M4D5K1L2
@M4D5K1L2 3 жыл бұрын
Dude, love your videos. To the point and simple to understand. Subscribed!
@rajkumargerard5474
@rajkumargerard5474 3 жыл бұрын
Great technique, thanks a lot for the video it will be very helpful to all who r using power bi.
@krishnakishorepeddisetti4387
@krishnakishorepeddisetti4387 2 жыл бұрын
Hi Chandeep, i tried this approach...but the data load with this is very slow compared to Merge and both merge and positionof make the file size same. how is this approach beneficial. help me with your inputs Thanks and Regards Krishna P.
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
I agree merges are faster.. I wouldn't recommend this on a large table
@krishnakishorepeddisetti4387
@krishnakishorepeddisetti4387 2 жыл бұрын
@@GoodlyChandeep thank you chandeep.... I am going through all your content this weekend 😀😀🙂🙂....your techniques are unique and can be life savers at many inatances
@RohitThakur-ku8sb
@RohitThakur-ku8sb Жыл бұрын
Your course , mastering dax in power bi is going to live sessions or pre-recorded sessions? I would like to learn DAX from you
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Live - goodly.co.in/powerbi-6day-workshop/ Pre-Recorded - goodly.co.in/learn-dax-powerbi/
@ShamalKaden
@ShamalKaden 3 жыл бұрын
I have a query on this such I have a large file of 9 companies where the inventory is handling in 2 systems. I had to pivot to make a summary of 9 companies and need to compare the same through Vlookup. Is there any easy way to do this?
@rrrraaaacccc80
@rrrraaaacccc80 Жыл бұрын
Excellent 💯👍
@williamarthur4801
@williamarthur4801 Жыл бұрын
Really liked the List.Postionof which I've never used before, tying before watching, I used SelectRows, Table.AddColumn(Source, "Custom", each Table.SelectRows( IdCount, (A)=> A[Id] = _ [Id] ) [Id Count] {0} ), if you have a list of multiple matches rather than the positional place you can wrap in List.Sum.
@elrevesyelderecho
@elrevesyelderecho Жыл бұрын
3:45 I'm from the future...an "INDEX" DAX function for Power Query...nice!!
@abhinayrozer7379
@abhinayrozer7379 3 жыл бұрын
Every video of you Making our life simple.... Thanks a lot buddy. Appreciations for your great hardwork
@GoodlyChandeep
@GoodlyChandeep 3 жыл бұрын
Thank you so much 😀
@mahnoorafridi9872
@mahnoorafridi9872 2 жыл бұрын
Very nice and simple technique😃
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Thank you
@xLidyx
@xLidyx 8 ай бұрын
I don't get it. I did exactly the same tables and exactly the same m code, still got Column1= null and Leave Count = error
@madhun8092
@madhun8092 3 жыл бұрын
When am trying to combine the workbooks .. am getting the option table and sheet. If am selecting table it’s giving me error.
@caioalabarse8933
@caioalabarse8933 Жыл бұрын
Ammazing approach
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
Thanks!
@gabrielgordon
@gabrielgordon Жыл бұрын
Hi Chandeep, great as always, and helpful
@safrasism
@safrasism 2 жыл бұрын
i got below error when i use this code. let valueneed= #"Master-Countries"[UID] , position=List.PositionOf(#"Master-Countries"[Country],[Country]) in valueneed{position} Error message below Expression.Error: The index cannot be negative. Details: Value=[List] Index=-1
@clementefu3306
@clementefu3306 7 ай бұрын
Did you solve it? I added a + 1, but it's taking me one position below
@clementefu3306
@clementefu3306 7 ай бұрын
I understood the reason, there are values that are not in the reference table
@idakwiatkowska2862
@idakwiatkowska2862 2 жыл бұрын
It's cool. But how do you proceed when the lists aren't exactly the same? Like in one list you have "name xyz" and in another list "the name Xy. Z" and you want to search for name?
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Try doing a fuzzy merge!
@mattschoular8844
@mattschoular8844 2 жыл бұрын
Interesting... Thanks Chandeep
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Glad you liked it!
@elrevesyelderecho
@elrevesyelderecho Жыл бұрын
8:27 Nice trick! Thanks.
@jonaskarlsson477
@jonaskarlsson477 Жыл бұрын
IMPORTANT its { not ( it took some time to see my error
@hiteshjal143
@hiteshjal143 2 ай бұрын
Amazing
@LinhTran-ys1mt
@LinhTran-ys1mt Жыл бұрын
Why make it so complicated? Just use Merge queries - Left Outer then it work exact the same way with far better speed and accuracy.
@PValili
@PValili 3 жыл бұрын
really good. appreciated
@paolosoloperto4948
@paolosoloperto4948 3 жыл бұрын
Good video. Very helpful 👍
@winbin82
@winbin82 3 жыл бұрын
GooooooooooD!!
@vijayarjunwadkar
@vijayarjunwadkar 3 жыл бұрын
Nice tutorial Very useful! 😊👍
@DineshP-v4y
@DineshP-v4y Жыл бұрын
Wow .. ❤
@morpando926
@morpando926 3 жыл бұрын
Great stuff, really helpful
@singhalmonica
@singhalmonica 2 жыл бұрын
Sir, pls guide how can we get more than one record
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
use Left Outer Merge
@keagankemp6275
@keagankemp6275 3 жыл бұрын
Appreciate this thank a mil
@mayurt4628
@mayurt4628 Жыл бұрын
How to get in contact with you
@GoodlyChandeep
@GoodlyChandeep Жыл бұрын
goodly.wordpress@gmail.com
@namangarg7875
@namangarg7875 2 жыл бұрын
Suppose i purchase ur course and after taking the course if i encounter some doubts in your vdos how do they are resolved because that is the main thing if the doubt is solved withing shorter time frame??
@GoodlyChandeep
@GoodlyChandeep 2 жыл бұрын
Hi Naman, I typically answer doubts within a day or two. But there are also times when I do not know the answer in which case it takes longer or worst I am not able to solve at all
@namangarg7875
@namangarg7875 2 жыл бұрын
@@GoodlyChandeep if a person like you says like that i am not able to answer makes me doubtful for this DAX complications. Because the way u have explained anything in your vdos is phenomenal thanks for context transition. Sir will i be getting the practice files in your course of DAX?? And how to contact you or your team for further enquiry about your course??
@namangarg7875
@namangarg7875 2 жыл бұрын
Sir please reply
@pk5134
@pk5134 3 жыл бұрын
Great video! Could you please do a video on functions ? Using let, in and each and _ operators ? I find it confusing accessing elements of nested tables. How would you go about doing that
@kriskris4760
@kriskris4760 Жыл бұрын
what do when u have 2 milion rows, and each must look-up in 260 thousnad rows ;-)
@riddharupbhattacharyya2963
@riddharupbhattacharyya2963 9 ай бұрын
Microsoft be like one problem 5 solutions
@ashishmohan4707
@ashishmohan4707 3 жыл бұрын
Wow chandeep Very informative tutorial Your way of explanation is very clear I have 1 request can you plzzcheck ur mail I have sent u something Please can you reply there. Regards, AM
IFERROR in Power Query - try and otherwise
9:04
Goodly
Рет қаралды 15 М.
List.Accumulate in Power Query with Practical Examples
27:26
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,7 МЛН
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 64 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
each & underscore_  in Power Query Explained
9:58
Goodly
Рет қаралды 50 М.
Use Power Query as a VLOOKUP Replacement | Everyday Office
6:45
Knack Training
Рет қаралды 41 М.
Context Transition in Power BI and Tricky Examples
15:06
Goodly
Рет қаралды 44 М.
I Bet You Don't Know All These Power Query Tricks
12:28
Goodly
Рет қаралды 39 М.
5 Tricks to Reduce Steps in Power Query
16:42
Goodly
Рет қаралды 35 М.
The Magic of Working with Lists in Power Query
14:27
Goodly
Рет қаралды 92 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,7 МЛН