Dynamic Coalesce in Power Query ( Record.SelectFields() )

  Рет қаралды 2,990

Exceed Learning

Exceed Learning

Күн бұрын

In this video we show you how to perform coalesce on a dynamic selection of columns using Record.SelectFields() function, an extremely important one when dealing with record type M objects!
👉We also wrote a blog on this topic that you can find in the following link: exceed.hr/blog/dynamic-coales...
👉To learn more about Power Query, check out our Power Query fundamentals course: exceed.hr/en/academy/powerque...
Working file is available here: exceed.hr/wp-content/uploads/...
#powerquery #powerbi #etltools #data #dataanalysis

Пікірлер: 20
@datawizibility
@datawizibility 6 күн бұрын
Awesome....great way of teaching... making complex things so easy ...
@vacilando86
@vacilando86 2 жыл бұрын
Awesome
@engahmedelbendary1566
@engahmedelbendary1566 2 жыл бұрын
thx alot for your Effort and go on
@umangdbz
@umangdbz 2 жыл бұрын
Awesome bro !
@rick_.
@rick_. 2 жыл бұрын
I always learn something from your videos. BTW, you could also have used List.Skip(,2) to remove the first two columns, either for filtering the column names or when selecting the record values. = Table.AddColumn(Source, "Coalesce",each List.Last(List.RemoveNulls( List.Skip(Record.ToList(_),2))))
@ExceedLearning
@ExceedLearning 2 жыл бұрын
Glad you find our videos helpful! :) Yes, for the first part of the video we could have used List.Skip, as it would return the same result. However, using Record.SelectFields is a more robust solution. When we moved the column Type (at around 8:00), the solution with List.Skip would remove the column Jan instead of Type, and it would return the wrong result.
@smvpegb
@smvpegb 2 ай бұрын
thankyou for this video is very helpful
@malchicken
@malchicken 2 жыл бұрын
Best power query vids. Unfortunately, I don’t really see your videos shown under related videos when I watch power query videos. To consider, maybe adding hashtags to the description or related channels to your channel page will help the KZfaq algorithm show your videos for related videos.
@norbertschmidt6532
@norbertschmidt6532 2 жыл бұрын
Dear EL, thanks, great and super.
@dabizness6662
@dabizness6662 9 ай бұрын
So thats what _ means ! Thank yiu fir explaining. I ve been doing PQ for 1 year didn’t know.
@silverfunnel6819
@silverfunnel6819 2 жыл бұрын
Very useful. Thank you!
@silverfunnel6819
@silverfunnel6819 2 жыл бұрын
It would be interesting to have the corresponding column name in a new column🙂
@SamehRSameh
@SamehRSameh 2 жыл бұрын
We Need more about M language and power query
@MrWella1234
@MrWella1234 2 жыл бұрын
Thanks for the tutorial. What about if you use the "Record.RemoveFields" insted of "Record.SelectFields"? then you can remove the name and type column and then it will be dynamic.
@ExceedLearning
@ExceedLearning 2 жыл бұрын
Hi, It is true that by using Record.RemoveFields you can achieve the same solution (similar to remove columns or remove other columns in the PQ user interface). We used Record.SelectFields because sometimes there are more complex filter conditions to evaluate, and that's where the Record.SelectFields can be a better choice.
@marcosflatron
@marcosflatron 2 жыл бұрын
Volim te 🥰
@epernayjfl
@epernayjfl 2 жыл бұрын
Bonjour et merci pour ce partage de connaissances ! Poster votre fichier exemple serait bénéfique pour nous ! 😉
@ExceedLearning
@ExceedLearning 2 жыл бұрын
¡Hola! Encuentre el vinculo al archivo de Excel a continuación 😄 exceed.hr/wp-content/uploads/Coalesce.xlsx
@kartik-wi2jv
@kartik-wi2jv 2 жыл бұрын
Excellent explanation, can you help me, how we need to refer to the previous row value in power query, for example, calculate date difference of current date and previous row date.
@kndeepak
@kndeepak 7 ай бұрын
Add and index column and refer to current row index -1
Rename first N columns in Power Query
13:38
Exceed Learning
Рет қаралды 3,3 М.
Reverse fill down (Unfill) in Power Query
9:46
Exceed Learning
Рет қаралды 2,4 М.
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 33 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 23 МЛН
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 8 МЛН
Power Query - Dynamic Coalesce multiple columns
8:22
BA Sensei
Рет қаралды 934
How to process multiple folders with a single Power Query script
13:17
Exceed Learning
Рет қаралды 13 М.
Top 5 easy to implement Power Query tricks
6:46
Exceed Learning
Рет қаралды 1,7 М.
List.Accumulate Case Study in Power Query
13:23
Goodly
Рет қаралды 20 М.
Why I Quit the Scrum Alliance
7:58
The Passionate Programmer
Рет қаралды 10 М.
Variables in power query | How and practical use case
3:16
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 33 МЛН