Documenting Power Query Functions
7:25
Power BI Evolution (as of June 2017)
12:00
The Power User Channel Trailer
0:14
9 жыл бұрын
Пікірлер
@jeffadam931
@jeffadam931 5 сағат бұрын
I've been able to connect, this is impressive. Does it contain table information? If not, any plans to add it?
@wafimatta2504
@wafimatta2504 29 күн бұрын
PLEASE HELP! When am trying to expand that Table data custom column, i dont get date within the data set drop list, i get only name & path :\
@caushy
@caushy 4 ай бұрын
Amazing thanks again
@timothylim8728
@timothylim8728 4 ай бұрын
Thank you! I been looking everywhere and they all just say group by and "All Rows" but that didnt do the job
@LuisAntonio-cd4ck
@LuisAntonio-cd4ck 6 ай бұрын
Miguel, 😢 que pasó con su página web😢
@AP-eb8hd
@AP-eb8hd 6 ай бұрын
Exactly what I was looking for. Thanks for the upload.
@mnikky14
@mnikky14 6 ай бұрын
life saver
@aurorixix
@aurorixix 7 ай бұрын
sinceramente, podrías haber detallado cómo hacer todos los pasos de cara a obtener el informe final en el caso 1 por lo menos. Eso de agregar columnas adicionales y demás... un poco fraude este vídeo.
@ExcelWithChris
@ExcelWithChris 7 ай бұрын
How do I grab a column from another table into this one
@ThePowerUser
@ThePowerUser 7 ай бұрын
you could potentially use QueryName[ColumnName] More info in the official documentation: learn.microsoft.com/en-us/powerquery-m/m-spec-basic-concepts
@VIBHOREVARSHNEY
@VIBHOREVARSHNEY 7 ай бұрын
This doesn't work with Direct Query. Any alternative for Direct Query Models?
@Dude276175
@Dude276175 8 ай бұрын
Great simple solution! I was trying to make is much more difficult than it needed to be. Thank you!😀
@goureshgundami5239
@goureshgundami5239 10 ай бұрын
Can we do it by DAX method? I mean not to use power query.
@ThePowerUser
@ThePowerUser 10 ай бұрын
probably yes. Concatenatex could help you with it.
@SteveBuscemi-j2d
@SteveBuscemi-j2d 11 ай бұрын
thank you!!!
@sebastiaomorais9553
@sebastiaomorais9553 11 ай бұрын
Excellent, thanks a lot
@KeithBrumbaugh81
@KeithBrumbaugh81 Жыл бұрын
Wow! I spent 8 hours trying to figure out how to extract a "capture Date" out of multiple jpg files (exif not natively supported in excel). I kept looking up vba code and other information to no avail. I knew power query should work. In fact I could get the data I needed by loading any jpeg file individually then converting to a text, then doing some clever formatting of the data (hint, the capture date is always in the 5th row of the text file, at least on my pictures). I couldn't for the life of me figure out how to parse through multiple files though. Your first 3 minutes of the video perfectly explained I could convert my trick into a function to be reused for every file. WOOHOO!!!!!
@mv_nirvana
@mv_nirvana Жыл бұрын
How do we get rid of duplicate values in the extracted list?
@ThePowerUser
@ThePowerUser Жыл бұрын
you could use the UI by clicking the "remove duplicates" button
@mv_nirvana
@mv_nirvana Жыл бұрын
@@ThePowerUser that doesn't work in duplicates in a single cell. I went with List.Distinct
@ThePowerUser
@ThePowerUser Жыл бұрын
​@@mv_nirvana the UI has an option to "remove duplicates" when you're either in a List or a Table. It uses Table.Distinct for tables and List.Distinct for lists. When you're in the "List" contextual menu you will get a "Manage items" group and the option to "remove duplicates" will be there. If instead you're trying to remove duplicates within a string, that would be something different and you might need to use Text functions for it and define what substrings you might want to consider a duplicate.
@XenArena
@XenArena Жыл бұрын
Hello, How did you create the function?
@ThePowerUser
@ThePowerUser Жыл бұрын
hey! Had to read a lot of the documentation and even request info and help from Microsoft to understand the language better. I tried to capture my knowledge in this video so I could pass it on, but beyond that its just reading the function reference.
@davidalvarado3455
@davidalvarado3455 Жыл бұрын
Thank you so much!
@CAKimberlyLewis
@CAKimberlyLewis Жыл бұрын
BEAUTIFUL! Thank you! 🌞
@josh_excel
@josh_excel Жыл бұрын
My take: kzbin.info/www/bejne/apavgmZtqpWVpdE
@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!!
@vishaljhaveri7565
@vishaljhaveri7565 Жыл бұрын
Insightful method to achieve the same requirement. Thank you :)
@coollehavre
@coollehavre Жыл бұрын
Hi, i would like to insert a condition in your function, but i don't know what's wrong: This is the code of the function : Could you help me ? (if i have the value "%" i want to do some calculation, otherwise, just add the amount) Thanks Source = Table.RowCount(Table.SelectRows(tAugmentation, each ([Category] = typeAugmentation))), Personnalisé1 = List.Generate ( ()=> [MoisEntree=0,Salaire=SalaireEntree,Taux=0,Categorie=typeAugmentation,Mois=Date.From(DateTime.LocalNow())], each [MoisEntree]<=Source, each [ MoisEntree = [MoisEntree]+1, //He says 'not valid' if tAugmentation{[Index = [MoisEntree]+1]}[Type]>= "%" then Salaire = [Salaire] * (1 + tAugmentation{[Index = [MoisEntree]+1]}[Augmentation]) else Salaire = [Salaire] + tAugmentation{[Index = [MoisEntree]+1]}[Augmentation]
@ThePowerUser
@ThePowerUser Жыл бұрын
hey! The KZbin comments section is probably not the best for these type of questions. I'd recommend that you post your full scenario on official Power Query forum with sample data and expected output. Below is the link to the forum: community.powerbi.com/t5/Power-Query/bd-p/power-bi-services
@coollehavre
@coollehavre Жыл бұрын
Hi, great work and thanks, but how to get the percentage in the result of the function ? (to display this rate in the table)
@ThePowerUser
@ThePowerUser Жыл бұрын
Hey! you'd need to modify the function or create a new custom function based on your specific requirements. It could output a record that contains multiple fields and then you'd expand such fields through the GUI
@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.
@gospelmoto2833
@gospelmoto2833 Жыл бұрын
Awesome! you nailed what I need. Thanks.
@bob-tina
@bob-tina Жыл бұрын
Hartelijk dank voor je goede uitleg! Het bespaard me veel werk
@ppvilleg7
@ppvilleg7 Жыл бұрын
Hi, Very nice solution. Is it possible to add multiple columns at once?
@ThePowerUser
@ThePowerUser Жыл бұрын
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
@Ihatesxhoolsomuxh
@Ihatesxhoolsomuxh 2 жыл бұрын
This is great, I followed your process but I have duplicate rows under "SalesPerson" (User ID) example because I have multiple rows due to other categories. So when I merge and extract values I am pulling duplicate values. Is there a way to group by distinct User ID? hope this makes sense.
@ThePowerUser
@ThePowerUser 2 жыл бұрын
hey! is up to you. You can choose the way that you group things - it can be based on multiple columns and not just on one. Here's the official documentation on how you can use the group by feature with multiple columns: learn.microsoft.com/en-us/power-query/group-by
@raitup00
@raitup00 2 жыл бұрын
Nice explanation, man!
@seanjames8126
@seanjames8126 2 жыл бұрын
Thanks for this amazing video
@davidcox7047
@davidcox7047 2 жыл бұрын
perfect, looking all day for this answer and you explained quickly and clearly:)
@kebincui
@kebincui 2 жыл бұрын
Fabulous!👍👍
@ChPetru
@ChPetru 2 жыл бұрын
Thank you so much!!
@alexeimatcov7928
@alexeimatcov7928 2 жыл бұрын
Very useful piece of information. Thanks a lot!
@kennethstephani692
@kennethstephani692 2 жыл бұрын
Great video!
@kennethstephani692
@kennethstephani692 2 жыл бұрын
Great video!,
@krzyzakpolska
@krzyzakpolska 2 жыл бұрын
Amazing video!!!
@REgamesplayer
@REgamesplayer 2 жыл бұрын
To think that I tried to do this task for a week. I could not find anyone talking about in forums. I tried programming, but PBI seems to be particularly awful with for functionality if it even has it. You however had brought exactly what I needed to finish the most annoying second half of my project. I had a very nasty DWH table with relevant data not only in different rows, but columns also. It took an ungodly amount of time and actions just to clean it up properly.
@joelngige5776
@joelngige5776 2 жыл бұрын
Super Excellent Video!!!
@SamVeneman
@SamVeneman 2 жыл бұрын
How would you do this with an API that has an endCursor (not an actual page count but a parameter you pass to get to the next page)?
@ThePowerUser
@ThePowerUser 2 жыл бұрын
this article might help you --> docs.microsoft.com/en-us/power-query/handlingpaging
@omarsierra3709
@omarsierra3709 2 жыл бұрын
Simply Magic bro, Thanks for this helpful content!!
@adunbar22
@adunbar22 2 жыл бұрын
Excellent Video! This is exactly what I was looking for and needed. Thank you very much.
@rajsekharjesollureddi8737
@rajsekharjesollureddi8737 2 жыл бұрын
It's very valuable information and understandable very clear thank you
@CSalcedoDataBI
@CSalcedoDataBI 2 жыл бұрын
Thank you, very good.
@chakrabmonoj
@chakrabmonoj 2 жыл бұрын
Hey - this is an excellent lesson. I was wondering if the same technique could be modified to return the bottom 3? would these work : 1. If we sorted sales in Ascending order? or, 2. If we changed the FirstN parameter to -3, for example? Or, 3. Is there a BottomN equivalent in M?
@ThePowerUser
@ThePowerUser Жыл бұрын
I think it's probably better if you define the sort (perhaps ascending or descending) and then grab the top 3 rows that way. There is a Table.LastN function, but it'll rely on your own logic. Sorry for the late reply.
@chakrabmonoj
@chakrabmonoj 2 жыл бұрын
Hey - this is a great video indeed and I am finding this most effective amongst the others available on the net. The problem with the code is however that it is not replacing the text strings which have multiple strings, sometimes separated by space and sometimes separated by comma. Is there a workaround for that?
@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