Adding Columns to Nested Table for Data Consolidation

  Рет қаралды 26,593

The Power User

The Power User

Күн бұрын

Пікірлер: 41
@dapperlink
@dapperlink Жыл бұрын
Two solid days I spent trying to do this. I got a freaky solution but was not at all happy with it. I went down this path but that function thing was the key. This is valuable even 5 years later! Thank you!!
@gospelmoto2833
@gospelmoto2833 Жыл бұрын
Awesome! you nailed what I need. Thanks.
@raitup00
@raitup00 2 жыл бұрын
Nice explanation, man!
@CAKimberlyLewis
@CAKimberlyLewis Жыл бұрын
BEAUTIFUL! Thank you! 🌞
@wayneedmondson1065
@wayneedmondson1065 2 жыл бұрын
Awesome! Just what I needed to solve this problem. Thanks for demonstrating! Thumbs up!!
@omarsierra3709
@omarsierra3709 2 жыл бұрын
Simply Magic bro, Thanks for this helpful content!!
@krzyzakpolska
@krzyzakpolska 2 жыл бұрын
Amazing video!!!
@kebincui
@kebincui 2 жыл бұрын
Fabulous!👍👍
@kennethstephani692
@kennethstephani692 2 жыл бұрын
Great video!,
@milocookieXD
@milocookieXD 3 жыл бұрын
This is exactly what I needed! You’re a lifesaver 😀
@pmsocho
@pmsocho 7 жыл бұрын
EXCELlent explanation! Thanks!
@Bristerireland
@Bristerireland 7 жыл бұрын
Nice! do you know if there is any performance benefit to using table.combine instead of expanding each table to new rows?
@ThePowerUser
@ThePowerUser 7 жыл бұрын
this is just personal experience as there isn't really any documentation from Microsoft specifying what's "the best" approach, but Table.Combine is the operation that you want to use if you're trying to combine tables. If you want to combine multiple lists in a single list then you'd use List.Combine, but, overall, I'd recommend Table.Combine over any other way.
@ThePowerUser
@ThePowerUser 7 жыл бұрын
btw, this is probably the best approach when trying to combine tables: kzbin.info/www/bejne/joG6n4N3nbZ4n7M
@Bristerireland
@Bristerireland 7 жыл бұрын
Thanks!
@ppvilleg7
@ppvilleg7 2 жыл бұрын
Hi, Very nice solution. Is it possible to add multiple columns at once?
@ThePowerUser
@ThePowerUser 2 жыл бұрын
you could create a custom function and make that happen, yes. Conceptually what you're doing is effectively running a function against a table, so you could create a function beyond the native function Table.AddColumn to make that happen.
@ppvilleg7
@ppvilleg7 Жыл бұрын
@@ThePowerUser Thanks
@ppvilleg7
@ppvilleg7 Жыл бұрын
​@@ThePowerUser I've been looking for an alternative solution and I've found that Table.ExpandTableColumn() could work but I can't find what is the difference between the solution you propose using Table.Combine() and Table.ExpandTableColumn(). Can you help me?
@ThePowerUser
@ThePowerUser Жыл бұрын
@@ppvilleg7 I'd suggest that you post your full scenario and expected output on the official Power Query forum: community.powerbi.com/t5/Power-Query/bd-p/power-bi-services
@wmfexcel
@wmfexcel 2 жыл бұрын
This is brilliant! Thanks for the video! :) 👍👍
@jillianballard9921
@jillianballard9921 4 жыл бұрын
Excellent - exactly what I needed!
@arekbombka9750
@arekbombka9750 7 жыл бұрын
Awesome!
@janakadeshapriyabandara5916
@janakadeshapriyabandara5916 6 жыл бұрын
Very helpful. Thanks
@BeTheLightToTheWorld
@BeTheLightToTheWorld 6 жыл бұрын
So helpful! Thank you a lot!
@davideferrari9333
@davideferrari9333 4 жыл бұрын
Thank you very much for this video. it is very useful. Can you please explicit the meaning of (r)=> [File Name]? how can it change the table context ? how can it "know" the outside Table? I do not understand what is the context in the nested AddColumn and how (r)=> change it. thank you in advance
@ThePowerUser
@ThePowerUser 4 жыл бұрын
That's a good question! I'd probably refer back to the official documentation so you can have a better understanding of the M language: docs.microsoft.com/en-us/powerquery-m/m-spec-functions The big key here is that each is the same as writing (_)=> Understanding how each works and how you can access things differently than in the "each" context is the to key to it all.
@davideferrari9333
@davideferrari9333 4 жыл бұрын
Thank you! I eventually found this explicit explanation about the meaning of context environment in M where it is clearly explained how that works. I hope can help! ssbi-blog.de/blog/technical-topics-english/the-environment-concept-in-m-for-power-query-and-power-bi-desktop-part-4/
@ThePowerUser
@ThePowerUser 4 жыл бұрын
​@@davideferrari9333 nice! The key is understanding what the each and (r)=> do and what they're for. Understanding this also enables you to understand how a function that gets invoked as a custom column bypasses this and how it has its own implicit way to define its scope.
@Sthudio
@Sthudio 2 жыл бұрын
This is exactly what I want to do, but my input is not table but Binary, can I do the same if this is the case? I have want to preserve the folder path column when expanding all the binaries
@ThePowerUser
@ThePowerUser 2 жыл бұрын
hey! not exactly sure that I follow exactly what you're trying to accomplish with the binaries. I'd recommend transforming the binaries into another data type such as tables, lists, records or just scalars. I'd recommend that you post your scenario on: community.powerbi.com/t5/Power-Query/bd-p/power-bi-services
@jarir-aljubari6679
@jarir-aljubari6679 2 жыл бұрын
Can I add columns with different functionality same way in nested tables?
@ThePowerUser
@ThePowerUser 2 жыл бұрын
it depends! but the concept of adding tables to nested tables is possible. it just depends on what type of columns you want to add or how you want to add them.
@farazshaikh74
@farazshaikh74 6 жыл бұрын
Hi.. thanks a lot for the video.. could you please help how to do the grouping running total inside this table.. note : I don't want use custom function..
@ThePowerUser
@ThePowerUser 6 жыл бұрын
Hey! Could you please post your full scenario on the official Power Query forum? The KZbin comment section is probably not the best way to give help you on this topic, but that forum sure is. Please post the link to your thread here once its public
@ExcelWithChris
@ExcelWithChris 8 ай бұрын
How do I grab a column from another table into this one
@ThePowerUser
@ThePowerUser 8 ай бұрын
you could potentially use QueryName[ColumnName] More info in the official documentation: learn.microsoft.com/en-us/powerquery-m/m-spec-basic-concepts
@frankling.zevallosestrada5965
@frankling.zevallosestrada5965 7 жыл бұрын
lo veo desde peru deberías ponerle subtitulos en español. gracias
@ThePowerUser
@ThePowerUser 7 жыл бұрын
Hola Franklin! mis disculpas. Espero dentro de poco poder crear un nuevo canal de KZbin dedicado al español. Saludos!
@Alex-uh5qv
@Alex-uh5qv Жыл бұрын
i want you see with million rows how you will add all columns names there...
@ThePowerUser
@ThePowerUser Жыл бұрын
the rows don't really matter that much as we could create methods that could basically just get the column names without evaluating the rows with functions like Table.ColumnNames. Now, if you want to add those new column names to a lot of rows then you'll have to pay that price somehow, but there are many ways to achieve the same solution and this is just one of those. Albeit a niche method, its the method that was requested by one of my subscribers at the time.
Power Query - Advanced Transformation of Nested Tables
12:37
BA Sensei
Рет қаралды 7 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 45 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 50 МЛН
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 41 МЛН
Create Index Column By Group in Power Query
10:26
BI Gorilla
Рет қаралды 54 М.
Adding the file name to nested tables
6:10
Alejandra Horvath
Рет қаралды 4 М.
Power Query: Index and Modulo Functions
15:48
Geeky Veep
Рет қаралды 63 М.
Unstack a Million Uneven Rows to Columns in Power Query
10:50
Excel Power Query Tutorial - Transforming Nested Tables
10:42
David Langer
Рет қаралды 28 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 45 МЛН