Тёмный

Advanced Group By Tricks in Power Query 

Goodly
Подписаться 97 тыс.
Просмотров 94 тыс.
50% 1

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 249   
@joelabacherli1310
@joelabacherli1310 Год назад
You lead RU-vid in amount of information retained per second. All of your videos pack so much information in such a short amount of time. Thank you so much for the content.
@GoodlyChandeep
@GoodlyChandeep Год назад
Thanks :)
@henryburke6387
@henryburke6387 Год назад
Thanks, I had a hunch that the editor could be leveraged in this way but I just started using PowerBI and did not have the language and syntax knowledge yet. Great jumpstart -Thank you!
@miazhou8902
@miazhou8902 2 года назад
Hi man, you explain things very clearly. You surely are one of the best teachers.
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Glad you think so!
@urosmaksimovic
@urosmaksimovic Год назад
So true!
@KawanExcel
@KawanExcel 2 года назад
This guy always make me amaze with his stuff .... Thankyou chandeep... You are the best teacher ever
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thank you for your inspiring words 💚😊
@chiragdabhi4929
@chiragdabhi4929 2 года назад
Is this possible to use count if function in power quary. In number of date colum ..I want use countif(range,>0.5) Range = number of colum.. ??
@inaction2024
@inaction2024 Год назад
Great video. Just one suggestion that please consider making your speaking window smaller or cropping it to only show your body, so that audiences get to see more screen. I found a few videos of yours that you were deleting/moving steps that we can’t actually see what’s been deleted and moved. Nevertheless, Thanks for making such wonderful and educational videos for free to us all here.
@yassinelechguar1851
@yassinelechguar1851 2 года назад
This solution couldn't come in a better time, the concatenation suggestion solved the main issue I had with some data transformation. Thank you Chandeep. First video that I watched on your channel and definitely not the last one. Thank you once again.
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Excellent!
@Rice0987
@Rice0987 2 года назад
Great work, man! I'm just silent! I've searched this solution for weeks, but unsuccessfully when somebody didnt suggest me do this with next step. But you did it with one professional mode! :)
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Cool! Glad it was helpful! 💚
@TVSCDN
@TVSCDN 5 месяцев назад
Thanks sirji🎉🎉🎉❤❤❤😊 Can you also show how to BI a Bank PDF Statement Analysis easily😮
@jean-marcherard9216
@jean-marcherard9216 2 года назад
Hi Chandeep, great video. Case 1, any hint on how would you concatenate values on 2 columns ? afer using advanced group by in the Ui ...
@HilaryGo555
@HilaryGo555 11 месяцев назад
Your videos are just fantastic - so clear and with content that is so relevant to business requirements. Thank you!
@cooolbreeze
@cooolbreeze 3 месяца назад
At 4:16, the function creates a column that holds tables at each row. What confuses me is how the each function results in Tables since it is used in the context of a table. In your excellent video on the each function, the one thing I got was each would behave based on the context of what object its used in. Here its used in the context of a table and results in a table. Is it because a bunch of rows are the result and a bunch of rows = table?
@alexrosen8762
@alexrosen8762 2 года назад
Very very useful tutorial especially because of the value it brings where the use cases are enormous in real life job situation tasks
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thanks Alex! 😃
@gauravsukhadia638
@gauravsukhadia638 2 года назад
Hi @Goodly What happens when there is a tie ? for example if two years have the same max value ? I am currently learning sql so in sql there are a windows functions called Row and Rank to deal with this level of complexity but I am not sure if we have any for M code.
@mecorowa5642
@mecorowa5642 8 месяцев назад
Hi, this tick with text.combine is really great. Is there a possibility to combine also numbers (with out converting to text)? Currently I need two steps, one step in group_by: {"Single_Qty", each [Qty]}, and a 2nd step to extract the values: Extract Values from List = Table.TransformColumns(GroupedRows, {"Single_Qty", each Text.Combine(List.Transform(_, Text.From), "#(lf)"), type text}) Do you have any approach to combine it in one group_by step? Thank and Cheers.
@miguelbenito7992
@miguelbenito7992 Год назад
Awesome man. This is exactly what I was looking for! Thank you.
@jaymehta3320
@jaymehta3320 2 года назад
Thanks Chandeep for sharing this. This is a very important topic you touched. I work more with Power Query than DAX and having the ability to do such amazing transformations helps a lot. Will play around with this.
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thanks for your nice words Jay! 💚
@jaymehta3320
@jaymehta3320 2 года назад
@@GoodlyChandeep And utilized it (Group By - concatenate values of a List) today on a real project as well. Thanks again!
@angelaisland4036
@angelaisland4036 2 года назад
This was amazing! Love how you explain everything!
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thank you!
@OmarAlvarezGarcia
@OmarAlvarezGarcia Год назад
Awesome video!! I have being looking for this future for a while, is it possible to create two list? Let's say that I want to summary the total of pallets list.count I guess and then all of the different quantity, it worked with list.distinct, I want to get a new column that summarizes the total amount of pallets per material nr and the distribution of cuantity , similar to what you did. Output should be " 2 pallets* 400 Qty, 1 pallet*250units . I can send you the information so you can see the data
@yami7475
@yami7475 Год назад
Hi Chandeep, need your expertise please, I have a datasets where there are 5 different amount fields with corresponding 5 different payment date for each payment , I want to get the amount paid for each payment date by year. Any thought on how I could get it done? Thank you kindly for your expertise! Yami
@nishantgupta9211
@nishantgupta9211 2 года назад
You are always awesome to come up with new learning for us. It is very helpful.
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Glad it was helpful 💚
@walter606
@walter606 Год назад
Simply Amazing... What a new way to get an approach to the problem....!!!
@AlexRuu
@AlexRuu 2 года назад
Thanks!! I have seen similar other solution and this is the most simple and efficient. It is like 3 step only 😎
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Glad you like it!
@mahathmasadineni2884
@mahathmasadineni2884 Год назад
Hi Chandeep as usal awesome vedio. I have one doubt what if i need to get the sales for the particular year like 2004, or if need filter for one text in a column
@markhenderson3771
@markhenderson3771 Год назад
You are really good. Thanks for your content. I am interested in filtering and grouping each table, and then combining. I can't seem to find a video in which you do that. Can you direct me or create something new?
@prasad9976
@prasad9976 2 года назад
sir is it possible to get row data for practice purpose
@danishnawaz3651
@danishnawaz3651 8 месяцев назад
Sir, plz make video for below. If 1 table has 9 column, 2 table has 10 and 3 table has 8 . Then how can we make equal all column for all table.. like we want to insert dummy column for missing column in tables and make equal like 10 column for each table.
@GoodlyChandeep
@GoodlyChandeep 8 месяцев назад
Use Table.Combine function. Watch this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qCHvpbV-Jkg.html 0:37 to 6:00 minutes mark
@helloworld9034
@helloworld9034 4 месяца назад
and if not Text insted is a value?
@elikent78
@elikent78 Год назад
great video, Chandeep. just wish you supplied your dataset to make learning easier.
@GoodlyChandeep
@GoodlyChandeep Год назад
All the blogs are supplied with dataset - goodly.co.in/blog/
@elikent78
@elikent78 Год назад
@@GoodlyChandeep fantastic. thank you!
@martyc5674
@martyc5674 2 года назад
Wonderful data manipulation Chandeep!!
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thank You Martin! 💚
@PowerQuery
@PowerQuery 2 года назад
Good stuff Chandeep
@TheSemiwatcher
@TheSemiwatcher Год назад
Thank you for your really usefull tips.
@williamneto1222
@williamneto1222 Год назад
Perfect! Thanks so much!
@GoodlyChandeep
@GoodlyChandeep Год назад
Welcome William!
@veasnapen6597
@veasnapen6597 2 года назад
You are teaching for video all very well😍.thank !
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Glad you like it 💚
@silverfunnel6819
@silverfunnel6819 2 года назад
Hello Chandeep, nice work. I have a question. Is it possible to invoke a function without creating a new column?
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Yes, it is possible!
@Kiyansh_Shaha
@Kiyansh_Shaha 5 месяцев назад
Hi, I have below data with me. Column-A Abhay Abhay Abhay Ravikant Ravikant Ravikant Column-B January-2024 February-2024 March-2024 January-2024 February-2024 March-2024 Column-C (Sales) 1000 2000 3000 1200 1400 1600 I want 1) In Column A the row A1 & A2 should only Abhay & Ravikant. 2) Column B Should be January-2024, Column C as February-2024 & Column D as March-2024. 3) Column E should have Sales numbers each month. Please help
@eliseovasquez4149
@eliseovasquez4149 Год назад
Amazing!!!!!!! thank you for sharing your knowledge!!
@GoodlyChandeep
@GoodlyChandeep Год назад
Glad you enjoyed it Eliseo!
@frankschadler9407
@frankschadler9407 2 года назад
Thank you, Chandeep. I finally understood '_'.
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Glad it was helpful to you 💚
@ExcelWithChris
@ExcelWithChris Год назад
I have two columns in power query. One is a worker name and the other a column formatted as time where he records his time on different stages of a project. I need to group per worker name and then get total duration for his project. Any ideas? Tried everything.
@ExcelWithChris
@ExcelWithChris Год назад
It looks like This: Name Time Name1 14:00:00 Name1 14:10:00 Name1 14:15:00 Name2 8:00:00 Name2 8:10:00 Name2 8:15:00 Name2 8:20:00 I then need to group by the name and get the duration for each name
@GoodlyChandeep
@GoodlyChandeep Год назад
It's straight SUM operation in Group By
@SachinKumar-xv5op
@SachinKumar-xv5op 2 года назад
The very first thing i uttered after watching this video: Banda khatarnaak h bhut!!
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Haha..! Thank you 😄💚
@jaitiwari241
@jaitiwari241 2 года назад
Plz share dataset to practice sir
@felipebayona9119
@felipebayona9119 Год назад
Very helpful
@Chris_in_fremantle
@Chris_in_fremantle 2 года назад
Very good, well done.
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thank you 💚
@sameernarkar5993
@sameernarkar5993 8 месяцев назад
Nice
@dirkstaszak4838
@dirkstaszak4838 2 года назад
Hi Chandeep, what shall I say. It is boring to leave always the same comment 🤣. But I do have to questions concerning this. I have open item lists at various dates. I want to see which invoice is when in the OP list (OP report date) and what the invoice value is (Step invoice). I get the desired result, but would like to apply your solution in one step. Thanks for your advice. GrpRows_OPReportDate = Table.Group(ChgType_OPReportDate, {"Invoice No (MBP/GSP)"}, { {"OP Report Date", each Text.Combine(_[OP_Date],", "), type nullable text },
@bharathreddy4267
@bharathreddy4267 2 года назад
Such a great content 👏
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thank you 💚
@rakeshranjan7647
@rakeshranjan7647 2 года назад
Jabardast
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thank you 💚
@OneNI83
@OneNI83 7 месяцев назад
wow,wow
@fajnefajne4339
@fajnefajne4339 2 года назад
I just wonder how to show both MaxSalesYears in case there were 2 or 3 years with the same max Sales Value.
@360iamme
@360iamme Год назад
I was a little confused as well because I thought we were going to SUM the sales by Year first or Sum them by customer first.
@fateenibrahim3423
@fateenibrahim3423 Год назад
I really appreciate how you go through writing the M code step by step, coz its allowed me to break down the steps and know exactly where went wrong i.e. if i pulled a list instead of a table first for a function for tables. Thanks a lot!!
@GoodlyChandeep
@GoodlyChandeep Год назад
Thanks :)
@pbiqueryous
@pbiqueryous 2 года назад
This has came at the PERFECT time! I've been asking myself these questions with advanced transformations for nested Tables, Lists and Records. I still have many questions - but you have again shined a bright guiding light in a world full of data darkness! Thank you bhaai-jaan! PS: Also amazed that you InteliSense works 🤣 - and so rapidly! What is this wizardry!? 🧙🏽‍♂️
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thanks for your nice words & also glaf it was helpful 💚
@excel-in-g
@excel-in-g 2 года назад
You can also use the Group By and Sum the column you want to concatenate. For sure it returns an error first. But then in the formula replace List.Sum by Text.Combine and remember to complete it with the delimiter in the right place.
@pabeader1941
@pabeader1941 2 года назад
Not quite. You still need to create the distinct list of Customers before you can use the Text.Combine function.
@excel-in-g
@excel-in-g 2 года назад
True, thanks for completing my answer as such avoding miscomprehension. I only wanted to point out the UI helps you discover and understand the logic behind M more then you'd realize. I often use the UI to give me a basic code that I can afterwards finetune.
@wildecorrea6477
@wildecorrea6477 2 года назад
🇧🇷 One of the best Power Query codes I've seen! Congratulations!
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thank you 💚
@wildecorrea6477
@wildecorrea6477 2 года назад
@@GoodlyChandeep 🇧🇷 Keep up the good work, man! 👊🏻👏🏻👏🏻👏🏻🔝
@deevssriyarathne4191
@deevssriyarathne4191 2 года назад
When extracting the year, how do you handle the error if you have more than one maximum sales value per person?
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Table.Max function only picks up 1 value even if there are multiple values found.
@sudbn
@sudbn 2 года назад
Very informative. Can we get the source file ?
@learningmadesimple347
@learningmadesimple347 2 года назад
Really great video... But what would you do if there were more than 1 year with the max value??
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Not sure, but probably some ranking technique to extract every record ranked 1.
@kdhivyabharathi6493
@kdhivyabharathi6493 4 месяца назад
Hello Sir, I have a small doubt.. What is the difference between group function and aggregate function? In real time, based on which scernio we will decide to use for group by or aggregate function ?
@papettipaolo
@papettipaolo 4 месяца назад
Thats an amazing video! Thank you for sharing! I was actually trying to do the opposite i.e transform a field with multiple value into mutiple lines with one value only per each line, any guidance?
@subramanianayyappan9759
@subramanianayyappan9759 2 месяца назад
You are a super Genius man !!...Thanks a lot for sharing your knowledge ! love your explanation
@RavinderKumar-gl8cy
@RavinderKumar-gl8cy Год назад
Sir, How we can do the function similar to Indirect function in Excel, in power BI. For Ex. I am having a slicer with the name of all Indian states, If I don't select any thing from slicer, then in the table for ROW value , name of state should come and their population. If I select any state from slicer , then in the table, respective district list should appear and there population. Thanks in advance.
@osamaabd-elmohsen6427
@osamaabd-elmohsen6427 Год назад
Can I make group by bin in power query, I mean if I have a table with some items and each one has its quantity and price and there is a running total column ,can I create group of items (1,2,3...)where each group doesn't have running total more than of 1000$?
@__HumanBeing
@__HumanBeing 2 года назад
This is a very advanced question, I think nobody asked before. If I have like 50 columns, and I want to group by only 2 of them, how can I agreggate automatically the other 48? 😈
@eslamfahmy87
@eslamfahmy87 Год назад
Actually, thank you but we can do that with 1 of M- Code function (table.column), and then extract our valu with any type of delimiter you need ?
@mahathmasadineni2884
@mahathmasadineni2884 Год назад
Why csv files columns data is getting misplaced in PQ when file size is big? How to fix it without using excel file?...
@zanodeloza2636
@zanodeloza2636 6 месяцев назад
Thanks a lot. It helps with my project. Will definitely enroll in your M course
@atiqkhan9637
@atiqkhan9637 2 года назад
Hi goodly can you please help me with two files ? i just wanna check how power query solve such problems thanks in advance
@ajaypatil4083
@ajaypatil4083 Год назад
Great work chandeep 👌👍 just want to know where is practice file of this particular video. Please tell me
@aashishmeshram9892
@aashishmeshram9892 Год назад
Hello, I need yours assistance for one thing - I have two different table - Table1 & Table2 Both tables has records with n number of columns, one column is common in both table which is Country. table2 has another field called Status=Active, Inactive. so I want a one output Matrix Table (similarly mentioned below), where I want to get the Count of both tables based on Country Condition: Table1: no condition (count) Table2 : based on Status = Active (countif) Country Count from Table1 Count from Table2 ------------------------------------------------------------------------------------------------------------------- India 23 39 Canada 44 48 Brazil 51 7 United States 17 73 how we can get it in Power Bi, i have made but second table count coming sum of table2 in each row.. please help
@rrrraaaacccc80
@rrrraaaacccc80 Год назад
Fantastic 💯👍
@rm8168
@rm8168 4 месяца назад
Thank you ! This was another great educational video.
@snehalshrimanwar3721
@snehalshrimanwar3721 Год назад
Hi Chandeep, When you are taking a live power bi training session?
@SwapnilJagtap-v2l
@SwapnilJagtap-v2l 7 месяцев назад
how to enable auto suggestion formula when we edit formula bar?
@AirPunkt
@AirPunkt 2 года назад
Wow, this is amazing! Thank you so much for sharing - It solved one of my main problems at work! 🙋🏼‍♂️from 🇩🇪
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Glad it was helpful!
@GoodlyChandeep
@GoodlyChandeep 10 месяцев назад
Check out our newly launched M Language course ↗ - goodly.co.in/learn-m-powerquery/
@binhdo20
@binhdo20 11 месяцев назад
thank you so much, thank youtube suggest what I am looking for
@danishnawaz3651
@danishnawaz3651 Год назад
Hi Sir, How can we bring 2 column instead of 1 . and concate them ..
@aakriti360
@aakriti360 6 месяцев назад
Hi can you link the sample dataset for this exercise?
@leostar1100
@leostar1100 Год назад
Can we perform the same task using mouse and keyboard
@edgarvidal9943
@edgarvidal9943 Год назад
how to create the column "others" dynamic ???
@abrozkhan3126
@abrozkhan3126 9 месяцев назад
Bro you are selling a 10k fees course, teaching basic things is literally shocking.😂
@singhalmonica
@singhalmonica 2 года назад
Sir, can we do same thing with DAX
@BrainyBrunetteBarbie
@BrainyBrunetteBarbie 2 года назад
I like to think of the Advanced Editor as the *true* user interface. Your videos have shown me so many new tricks! Thank you!
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Glad it was useful 💚
2 года назад
Amaizing video, thanks, with wich keys you can give format to the function in the formula bar? Like indent code or pull a row of code into the next line? thanks
@sandipansarkar9211
@sandipansarkar9211 9 месяцев назад
Finished watching
@SandipanSarkar-c8v
@SandipanSarkar-c8v 9 месяцев назад
Finished watching
@bachillere
@bachillere Год назад
Bro... you made my day.
@k59ngothithuynhi7
@k59ngothithuynhi7 7 месяцев назад
thak you
@jeze5081
@jeze5081 2 года назад
This is basically what I have been trying to do. Except, I want to create visualization so when you click on a title/movie, all the cast members pop up. Is that something you can explain?
@GoodlyChandeep
@GoodlyChandeep 2 года назад
I don't understand, isn't that a simple filter on the movie column that shows all the cast members? I am not sure where and why are you getting stuck :(
@arghyadutta9091
@arghyadutta9091 Год назад
Great
@singhalmonica
@singhalmonica 2 года назад
Sir, lesson was great help.. pls help me on how to get sum the of concatenated values in same query.
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Monica, you can use the Group By feature and SUM happens to be a standard column calculation that you can use!
@kunalr_ai
@kunalr_ai Год назад
When you create video in beginning the quality was not good but now the quality is good
@GoodlyChandeep
@GoodlyChandeep Год назад
hi Kunal, why did not like the videos before. can you point out what do you like now and why?
@sukoi2113
@sukoi2113 2 года назад
Glad to find your content. Subscribed.
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Glad you have subscribed! 💚
@pavelandreev6023
@pavelandreev6023 2 года назад
👍
@raulbernales3110
@raulbernales3110 2 года назад
Thank you so much. This is exactly what I need.
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Glad it helped
@qiancasper
@qiancasper 2 года назад
thanks for your video. let me further understand the lookup in power query
@GodOfIntelligence
@GodOfIntelligence 2 года назад
Your really amazing 🥰. Love from Andhra Pradesh
@prasad9976
@prasad9976 2 года назад
Nicely explained sir
@GoodlyChandeep
@GoodlyChandeep 2 года назад
Thank you 💚
@rokaskarabevicius
@rokaskarabevicius 3 месяца назад
Excellent. Have you got a video which would point me to the right direction for mapping two lists and filtering on condition? Say we have a one row table with col1 [a, b, c], col 2 [1, 0, 1], col3 (output) [a, c]
@GoodlyChandeep
@GoodlyChandeep 3 месяца назад
If you have a table just filter it on the second column containing 1. If you have lists. download this file. goodly.co.in/wp-content/uploads/2024/06/For-Rokas.xlsx
@rokaskarabevicius
@rokaskarabevicius 3 месяца назад
@@GoodlyChandeep appreciate your answer, but what I meant is that each row of a column contains a list. In this example, col C1 row 1 would be a list [a, b, c], col C2 row 1 would also be a list [1, 0, 1] and the output col C3 should then be a list of letters from the list in C1 corresponding to 1s from the list in C2, in this case [a, c]. I'll give it another try. Thanks for your help anyway. Your videos are indispensable. Edit: solved by creating a temp column with tables from lists in C1 and C2, then filtering that table by selecting rows that match the condition, then selecting column with letters, and turning it back to list and text combining it. Convoluted, but works. Not sure if it will scale for millions of rows though :)
@joviee.6246
@joviee.6246 Год назад
Dude much appreciated! Great explanation and came at a great time as well
@balrajvirdee1087
@balrajvirdee1087 8 месяцев назад
Thanks a lot again bro, great tips
@GoodlyChandeep
@GoodlyChandeep 7 месяцев назад
Always welcome!
Далее
Advanced Grouping Tricks In Power Query
15:34
Просмотров 26 тыс.
I Bet You Don't Know All These Power Query Tricks
12:28
Power Query - Alternate Group By Strategies
12:29
Просмотров 4,2 тыс.
The Magic of working with Records in Power Query
10:28
Try This Instead of the XLOOKUP
10:06
Просмотров 89 тыс.
Grouping and Binning in Power BI
13:25
Просмотров 15 тыс.
Aggregate Rows in Power Query with Group By
14:56
Просмотров 8 тыс.
The Magic of Working with Lists in Power Query
14:27
Просмотров 89 тыс.
5 Surprising Power Query Tricks You Need to Know!
14:14
Summarizing Data with Group By in Power Query
7:39
Просмотров 27 тыс.