Great work! The Microsoft documentation on this is very difficult to navigate and understand, and this is clear and practical.
@amitk12082 жыл бұрын
The best part of your teaching is you deep dive and great explanation and make the things easier to understand
@GoodlyChandeep2 жыл бұрын
Thank you!
@MichaelBrown-lw9kz Жыл бұрын
This is by far the best explanation I have seen regarding "each" and "_". I finally understand this. Thank you so much
@EmpyrialArchangel9 ай бұрын
THANK YOU! I spent HOURS reading documentation, but all I needed was 10 minutes on KZbin. You're my hero!
@dc2guy24 ай бұрын
fr sometimes Microsoft's documentation seems intentionally unhelpful...dare I say obfuscated.
@navisalomi Жыл бұрын
Thanks so much. It's good to know both the each syntax sugar and the declaring a variable like (r)=>. There are cases where you're nesting functions. Once you use each _ once, if you use it again , it overwrites the first one. So, be careful. If you must use each again, declare the variable. Example, Table.AddColumn(Source, "NewCol", each {_[Amount]} & List.Transform({2,3,4}, (x)=> x * _)). You can't use the each _ in the List.Transform function. You will overwrite the first _ and cause the functions to crash.
@konigkakfas33927 ай бұрын
Short into the point - cool, thx!
@iantotheh2 жыл бұрын
Such an eloquent explanation of something I've been wondering for a while!
@GoodlyChandeep2 жыл бұрын
Glad it was helpful !
@arunkumarkesavan60772 жыл бұрын
Now I cant say to anyone that I am good in Power BI after watching your vidoes!!! you're the person to say it...
@mohamedfouad7958 Жыл бұрын
Love you man, I learned a lot from you and still learning
@ajieapen2 жыл бұрын
ah... I've been waiting for this since ages... No words to thank you, Chandeep... :)
@pmajoros5 ай бұрын
once you have nested each's, power query starts to get confused about what you mean by _, so you better start using named functions
@mohitoshbiswas4797 Жыл бұрын
Great explanation of each and _ keywords and their applications. Thanks Chandeep 👍
@anais47664 ай бұрын
wow! eye opening! Thank you!
@josecarlosconejo5724 Жыл бұрын
You are really good at explaining things… 👍
@QuantumIdeas Жыл бұрын
Fantastic video, Chandeep! Each, _, () and => have been so mysterious to me before viewing this video. This is a huge for me.
@ajayv304 Жыл бұрын
I watched this video a few months back and I listened to it now. Understood clearly. Thanks a lot.
@GoodlyChandeep Жыл бұрын
Glad it helped Ajay!
@zahoorsarbandi29822 жыл бұрын
The explanation of "each" and "_" has been been done in a very simple and effective way... zabar10
@GoodlyChandeep2 жыл бұрын
Glad you like it!
@stefanoconti44727 ай бұрын
Thank you very much, excellent and very clear explanation. Your videos are very beautiful and really helpful for everyone. But please try to speak SLOWER, your spoken English is too fast, sometimes the words overlap and it is not clear what you mean. Thank you
@Bic27057 ай бұрын
I have a lot of difficulty creating a conditional transformation that involves more than one column. I would really like a video about it.
@GF861236 ай бұрын
This is, which is nothing, but a great video!!
@IvanCortinas_ES2 жыл бұрын
Superb explanation. It can't be explained better. Thank you Chandeep!!!
@GoodlyChandeep2 жыл бұрын
Glad you liked it!
@justinwduff Жыл бұрын
I know very little about M, but how you explained this made a lot of sense. Thank you.
@GoodlyChandeep Жыл бұрын
Thanks Justin :) To learn more about M, You can refer to this video. kzbin.info/www/bejne/a6SbfKxrp5lmq6s
@williamarthur48012 жыл бұрын
Thank you, its' about time soneone tackled this topic, I rememeber when I first started looking at M being very cofused by the Fuction (_, , that I would see. I still find there use confusing / interesting in that sometimes using a named function eg (A)=> A[whatever], will work whereas each [whatever] , might not. Thank you for all your work in putting these videos together.
@roywilson95802 жыл бұрын
Thanks for the interesting video. I wish someone had explained this so clearly when I first tried to work out what the each and _ were doing and how to use them.
@GoodlyChandeep2 жыл бұрын
Glad it was helpful!
@larmondoflairallen47052 жыл бұрын
My prayers have been answered. Thank you, Chandeep!!!!
@GoodlyChandeep2 жыл бұрын
You are welcome!
@Hello-bn2yc Жыл бұрын
Finally I was able to get it... Thank you so much Chandeep.
@wayneedmondson10652 жыл бұрын
Awesome explanation Chandeep! I think of each as shorthand for the function (myVar)=> and underscore as the variable myVar, as in (using your example): (myVar)=> myVar[Amount] to extract the amount from the record. I believe it is confusing to people because they experience each and _ before learning to formally declare functions. If they learned the formal way first and then learned the shorthand of each and _ it might be easier. Thanks for a great explanation.. alway good learning at Goodly! Thumbs up!!
@GoodlyChandeep2 жыл бұрын
I am with you a 💯 percent. That is also because the UI generates the shorthand code and that is what people see and try to understand.😁 Personally I feel the each _ is more humanly to read.
@rpopecpa10 ай бұрын
Thank you for this video!! A simple bit of valuable information to add to my knowledge base.
@kkhalidabed Жыл бұрын
Well Done
@GoodlyChandeep Жыл бұрын
Thanks Khalid!
@elikent782 жыл бұрын
spent an hour trying to understand this from someone else's lesson yesterday, and couldn't get it. but you, in ten minutes, done. fantastic, chandeep.
@GoodlyChandeep2 жыл бұрын
Hey Eli, I spent an hour in planning the video to explain in 10 mins 😁 I am glad it helped. Cheers
@anilyadav-rt4sr2 жыл бұрын
Thanks Your power query video is too good
@GoodlyChandeep2 жыл бұрын
Glad you enjoyed it!
@kamleshmistry2728 Жыл бұрын
hats off. thanks for great content.
@avecNava Жыл бұрын
each seconds of this video is great :)
@GoodlyChandeep Жыл бұрын
Glad you think so Nava!
@jon99long8 ай бұрын
I’m a power query amateur, just playing around in my spare time, trying to find solutions to various data problems (mostly accounting.) I have spent many hours looking at your videos over and over again. At first most of them didn’t make sense, but I’ve suddenly had many “eureka” moments rewatching a lot of your videos. This has given me a lot of confidence to try more challenging problems. Thanks for some great lessons.
@vacilando862 жыл бұрын
Finally, It's understood 😄 , Thanks for your endless effort.
@GoodlyChandeep2 жыл бұрын
Welcome!
@johnfunet2 жыл бұрын
Very interesting video, thanks for the excellent way you explain step by step. Very professional.
@GoodlyChandeep2 жыл бұрын
Glad you like it!
@joaovasconcelos53604 ай бұрын
Amazing, thank you!
@kiran5212 жыл бұрын
Thanks Chandeep, please make video on problems occur in bidirectional direction and why it is not feasible
@oscarmendez-roca91812 жыл бұрын
Great video and explanation with simple examples. I suggest to continue with the use of double "each" in case of working with arrays (List of a List). Thanks Chandeep!!
@Vandalfoe2 жыл бұрын
Yes, please. I'm struggling to know how to work with 'each' row of a table, say, if one is added from a merge, for example. How do I access the "outside" underscore?
@MrDonkey9122 жыл бұрын
@@Vandalfoe If you name your variables, you can access both, ex: = Table.AddColumn( s, "n", (row) => List.Select( l, each _ = row[Name] ), type any )
@karimallahwala70222 жыл бұрын
You teach great Knowledge. Very helpful thank so much.
@GoodlyChandeep2 жыл бұрын
Glad it was helpful!
@stephanedelaval6525 Жыл бұрын
Clear and neat. Thank you for the explanation
@GoodlyChandeep Жыл бұрын
Glad you like it !
@skimpylemon80342 жыл бұрын
Fantastic video with a excellent explanation! Thank you Chandeep!
@GoodlyChandeep2 жыл бұрын
Glad you like it!
@brij265792 жыл бұрын
Awesome explanation & clarity 👌👍
@GoodlyChandeep2 жыл бұрын
Glad you like it!
@OdelLeal2 жыл бұрын
Great job and very helpful your information. Súper.
@GoodlyChandeep2 жыл бұрын
Glad it was helpful!
@rohanbhattacharyya6600 Жыл бұрын
Very informative. Thanks!
@OmisileKehindeOlugbenga2 жыл бұрын
Thank you Chandeep. Very simple to follow and remember.
@GoodlyChandeep2 жыл бұрын
Glad you liked it!
@seanys6 ай бұрын
I wish I had seen this video when I first started trying to use Power Query.
@dilip1able Жыл бұрын
Awesome Chandeep
@isidreb2 жыл бұрын
A great explanation, using examples that are easy to understand. Thanks for sharing!!
@GoodlyChandeep2 жыл бұрын
Glad you enjoyed it!
@matheusosa2 жыл бұрын
Great explanation!
@GoodlyChandeep2 жыл бұрын
Thanks!
@komanguy2 жыл бұрын
Great! Very well explained, the meaning of the underscore and how to define a function. Thank you very much.
@GoodlyChandeep2 жыл бұрын
Glad you liked it
@briandelaney63542 жыл бұрын
Thanks for this explanation - very clearly explained 👊
@GoodlyChandeep2 жыл бұрын
Glad you like it!
@frachiar4444 Жыл бұрын
Grazie.😀
@GoodlyChandeep Жыл бұрын
Thank you so much 💖
@90hsilva Жыл бұрын
very clear as usual mate, thanks :)
@Faisal630452 жыл бұрын
Thank you for sharing this info if there's any example from the real world scenario it would be great
@GoodlyChandeep2 жыл бұрын
You are very welcome!
@cooolbreeze2 жыл бұрын
Really well explained.
@GoodlyChandeep2 жыл бұрын
Thank You !
@seamushand84392 жыл бұрын
Thank you Chandeep, very well explained
@GoodlyChandeep2 жыл бұрын
You're most welcome
@alexandresalome2684 Жыл бұрын
Excellent explanation, thank you! I have a question: is it possible to change the value of a simple item in a column, based (table.transformRows, each , if, then, else) on another column, without adding a new column? example: [Name] = a,b,c and [Years] = 10,20,30 if [Name ] = c then [Years] = 40 . (without using "table.addcollumns", that is, changing directly on column [Years]?) If yes, Is it possible create a video about it?
@balakrishnaj17132 жыл бұрын
This video is very helpful, thanks a ton 😀
@GoodlyChandeep2 жыл бұрын
Glad it was helpful!
@EricHartwigExcelConsulting2 жыл бұрын
Great video and really detailed explanation in the use of the "each" and "_". Thank you for making this video!
@GoodlyChandeep2 жыл бұрын
Glad you like it!
@oliverscheurich92022 жыл бұрын
Great. You should have 320.000 subscribers instead of 32.000.
@GoodlyChandeep2 жыл бұрын
Haha! Thanks
@RobertoStaltari2 жыл бұрын
This video deserves a double thumb up!
@GoodlyChandeep2 жыл бұрын
Thank you!
@nocturneuhАй бұрын
Thank you 🙏
@jaymehta33202 жыл бұрын
Thanks for sharing this. Haven't used each and _ that much but this helps to encourage and see where I can use it to make the queries more efficient/effective.
@GoodlyChandeep2 жыл бұрын
You are so welcome!
@pmsocho2 жыл бұрын
Great explanateion! Thanks!
@GoodlyChandeep2 жыл бұрын
Glad you enjoyed it!
@ΠαναγιώτηςΧατζηαντωνίου-ι7θ11 ай бұрын
Hi, thanks for the great explanation. A little crazy question... Is there any way to turn PQ editor in black theme as you did?
@stefaanlouette Жыл бұрын
Awesome video
@GoodlyChandeep Жыл бұрын
Glad you enjoyed it
@bhaveshh57862 жыл бұрын
Hey Chandeep, i want to calculate turn around time if a transaction received after 3pm it should consider next day to calculate it with close date. Also it should only consider the business days excluding Saturday and Sunday. Thanks in advance.
@ramkumarsai98462 жыл бұрын
Hi. I loved your way of explaining and I have learned lot of stuff from your video’s. I have strucked some part of the work like dynamically comes column headers from the row data. In power BI. Could you please help me on the same.
@xaft8 ай бұрын
Love your content and short explanations. Pls let me know if u have got discount for ur courses!!
@KuldeepSingh-nq1vi2 жыл бұрын
Most awaited Video, Thank you so much that you created video on this topic and very nicely explained each and "_" keyword. It will help us to understand complicated M code..I appreciate your dedication towards teaching us..we would expect other basic videos like this from you.. Please make video on how to create custom functions in power query from scratch..
@GoodlyChandeep2 жыл бұрын
Most welcome 😊
@kennethstephani6922 жыл бұрын
Great Video as usual, Chandeep!!
@GoodlyChandeep2 жыл бұрын
Thank you!
@kebincui2 жыл бұрын
Well explained👍
@GoodlyChandeep2 жыл бұрын
Thank you!
@alvarorodriguezlasso Жыл бұрын
You are a crack, regards from Cali Colombia
@GoodlyChandeep Жыл бұрын
Thanks Alvaro!
@muralidharannatarajan42512 жыл бұрын
Super explanation
@GoodlyChandeep2 жыл бұрын
Thanks!
@Геннадій-ц8э Жыл бұрын
Great!
@matheussvs2 жыл бұрын
Thanks man! Youre amazing
@GoodlyChandeep2 жыл бұрын
Glad you like it !
@FRANKWHITE19962 жыл бұрын
Thanks for sharing ❤
@GoodlyChandeep2 жыл бұрын
Thanks for watching!
@kerryhaxton1980 Жыл бұрын
Thanks for you time to help us along. I have an each and underscore that I'm trying to resolve. and maybe getting myself twisted up: I'm working on a sheet, and I want to change every occurrence of a character (% in my case) to a VALUE (Happens to be the Column header). I have the column names to which I'm applying the transformation in a list (Collist), and think I want to apply a process like List.Transform(Collist, each {_, each Text.Replace(_,"%", XXX)})) But I want the XXX to be represented by the same value from Collist. In my test sample Collist contains 3 values: When I change XXX to a literal, the process works, and all the "%" values are changed to "XXX".....but in real like I have a number of nested tables, with varying number/names of columns over which I need to perform the transformation: Sorry long winded question
@mohitupadhayay14392 жыл бұрын
Chandeep praji Real time DAX scenario ki playlist bana dijye for interview.
@freedomdst9 ай бұрын
can you put certain columns in a record and use it to show info on a regular tooltip? I wanted to show certain info depending on type of data, i had to concatenate columns based on conditions and even set titles for the data, like for data A "info1: " & "[info1)] & " " & "info2: "& [info2]... and so on.
@thebhaskarjoshi2 жыл бұрын
amazing thanks!
@GoodlyChandeep2 жыл бұрын
Glad you like it!
@Jonbooi Жыл бұрын
Why can I use the _ as a shorthand for the column name in this formula if the _ holds the whole record? = Table.ReplaceValue(Source, each [Colum1], each if [Column1] = "AAA" then _ else "123" ,Replacer.ReplaceText,{"Column1"})
@malchicken2 жыл бұрын
Very well explained thank you😊. When you declared (r) as a variable, could you have declared other variables that *don’t* represent the current record value? How complex can the functions used be? Does the variable always have to represent the current record? 🙏
@GoodlyChandeep2 жыл бұрын
The variable name can be anything but you can only declare a single variable while you are working with records in a table.
@Vandalfoe2 жыл бұрын
I believe that in the content of list.Xform and table.addColumn, that third parameter is being "fed" each (no pun intended) row/item of the first parameter. Therefore, whatever variable name you use, it will be loaded with 'each' item. @Goodly, is that about right?
@MrDonkey9122 жыл бұрын
table: `_` is the record of the current row List: `_` is the current list item when looping Table.SelectRows: `_` is the record of the current row You can write your own functions, that validate better Here's two examples that assume your table has a column named "Number" which is a number = Table.AddColumn( Source, "Enforce Text", (row) as text => Text.From( row[Number] ) & " ending", type text) = Table.AddColumn( Source, "Enforce Int", (row) as number => row[Number] + 100, type number) the `as number` is a type assertion. Either the result is a number, else, that row throws an error. plus the columns datatype is correct! It doesn't reset to type any, because `each` is what caused it to lose the type
@luigibru8677 Жыл бұрын
General question: any idea how to turn on in MacOs the syntax helper?
@gennarocimmino2 жыл бұрын
Thanks very much
@GoodlyChandeep2 жыл бұрын
glad you like them!
@Faisal630452 жыл бұрын
Thank you for sharing this, is there a way to track values changes after refresh a power query in excel
@GoodlyChandeep2 жыл бұрын
Not that I know of
@Albert-zf8ct Жыл бұрын
nice!
@santoshpv3212 жыл бұрын
Supreme!!!
@GoodlyChandeep2 жыл бұрын
Thanks!
@vadnerepravin2 жыл бұрын
Question regarding power query I have many coulmn like Printing and Stationary 18%, repairing 18%, Consultancy 18% like that I want to Addition all this coulmn in Net 18% I have more than 200 ledger above said example. I have made table mentioned all ledger in left side like (consultancy 18%) and summation in coulmn right side like (Net18%) How can we dynamically addition above coulmn
@mmuthuvel68292 жыл бұрын
Very clear explanation. Do you have any course in Udemy?
@LaloinLondon Жыл бұрын
Thanks for sharing. Would you mind telling me how could you get amount without using the name 'Amount', just by position?
@sunnygala79722 жыл бұрын
Great video! Do you cover all these concepts in your Power query course?
@GoodlyChandeep2 жыл бұрын
working on an exclusive M Language course. Should be out soon :)
@KirillBezzubkine2 жыл бұрын
I was wondering what "_" means. But actually i found more convenient to use " (x) =>" construction
@gopalnaidu11032 жыл бұрын
I have one unsolved query .could you please help me out .if the column contains the data as names and Gmail IDs and #twitter IDs ,and some other like diffent delimeters data .how to seperate the only names to one column and all Gmail IDs ,#twiiter IDs and delimeter data in to other column
@nishant77goel2 жыл бұрын
Help needed! Selected Parameter = maxx(filter('Date Value', 'Date Value'[Date Value Order] = SELECTEDVALUE('Date Value'[Date Value Order])), 'Date Value'[Date Value Fields]) This returns the name of selected column name based on the selected Parameter. Now based on the selected column name wants to calculate dates that falls in last 180 days on that partcular column. Last 180 days = IF([Selected Parameter] > (TODAY()-180),"1","0") This is giving error that the values/ Format are not matched one is date and other is text. As of now the dates column are in date time format.
@GoodlyChandeep2 жыл бұрын
try wrapping the VALUE function around TODAY() VALUE ( TODAY () ) -180 ....
@nishant77goel2 жыл бұрын
@@GoodlyChandeep this is not working. Value coming from selected parameter is not considered as column but is considered as text. So it's not matching up with today()-180 days condition. If I directly consider column the formula is working fine
@markhenderson3771 Жыл бұрын
Can I add ‘ and null to return a list of lists?
@Moellz2 жыл бұрын
Hello Chandeep, great video. I really like the short explanations about one topic that you're posting recently. One question: Why does "r" in the section about alternate to each_ hold every record of the table? Is it because of the name?
@GoodlyChandeep2 жыл бұрын
the variable name could be anything (r, x, abc, _) the variable holds the value of each item of the object (table, list etc..) and can be retrieved using a function => So all of the following are valid = Table.AddColumn(Table, "ColName", (abc) => abc) = Table.AddColumn(Table, "ColName", (_) => _) = Table.AddColumn(Table, "ColName", (myrecord) => myrecord)
@sandeepkhawas336711 ай бұрын
Can anyone suggest as getting this while using the same function in power query! Expression.Error: We cannot apply operator + to types Text and Number. Details: Operator=+ Left=1 Right=1
@seamushand84393 ай бұрын
Hi Chandeep, I am importing a PDF file from an old accounting package and, using some of your other tutorials, I am able to strip out the tables in the PDF. However some of the tables contain only report data, eg the Date the report is issued, report name etc. For now i have been simply using table append to stacl them all together and then i manually delete the columns with the report data. I would like to be able to dynamically iterate through each of the tables ( using each), test if the data in the first record contains "Date" ( or similliar trigger word) and if so delete the table, leaving only legitimate tables for me to append. Can you point me to anything that would help with this ? Thanks. Seamus
@GoodlyChandeep3 ай бұрын
Parts of this video might be useful kzbin.info/www/bejne/poXTqWygmq53rpo