Could this be adapter to work on a cursor based pagination? How would I go about that?
@ThePowerUser28 күн бұрын
you could implement your own logic using List.Generate and effectively storing the cursor for the next page in a field and then using that value in subsequent calls. Completely doable
@jeffadam931Ай бұрын
I've been able to connect, this is impressive. Does it contain table information? If not, any plans to add it?
@wafimatta25042 ай бұрын
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 :\
@caushy6 ай бұрын
Amazing thanks again
@timothylim87286 ай бұрын
Thank you! I been looking everywhere and they all just say group by and "All Rows" but that didnt do the job
@LuisAntonio-cd4ck7 ай бұрын
Miguel, 😢 que pasó con su página web😢
@AP-eb8hd7 ай бұрын
Exactly what I was looking for. Thanks for the upload.
@mnikky148 ай бұрын
life saver
@aurorixix8 ай бұрын
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.
@ExcelWithChris8 ай бұрын
How do I grab a column from another table into this one
@ThePowerUser8 ай бұрын
you could potentially use QueryName[ColumnName] More info in the official documentation: learn.microsoft.com/en-us/powerquery-m/m-spec-basic-concepts
@VIBHOREVARSHNEY9 ай бұрын
This doesn't work with Direct Query. Any alternative for Direct Query Models?
@Dude2761759 ай бұрын
Great simple solution! I was trying to make is much more difficult than it needed to be. Thank you!😀
@goureshgundami5239 Жыл бұрын
Can we do it by DAX method? I mean not to use power query.
@ThePowerUser Жыл бұрын
probably yes. Concatenatex could help you with it.
@SteveBuscemi-j2d Жыл бұрын
thank you!!!
@sebastiaomorais9553 Жыл бұрын
Excellent, thanks a lot
@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 Жыл бұрын
How do we get rid of duplicate values in the extracted list?
@ThePowerUser Жыл бұрын
you could use the UI by clicking the "remove duplicates" button
@mv_nirvana Жыл бұрын
@@ThePowerUser that doesn't work in duplicates in a single cell. I went with List.Distinct
@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 Жыл бұрын
Hello, How did you create the function?
@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 Жыл бұрын
Thank you so much!
@CAKimberlyLewis Жыл бұрын
BEAUTIFUL! Thank you! 🌞
@josh_excel Жыл бұрын
My take: kzbin.info/www/bejne/apavgmZtqpWVpdE
@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 Жыл бұрын
Insightful method to achieve the same requirement. Thank you :)
@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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
i want you see with million rows how you will add all columns names there...
@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 Жыл бұрын
Awesome! you nailed what I need. Thanks.
@bob-tina2 жыл бұрын
Hartelijk dank voor je goede uitleg! Het bespaard me veel werk
@ppvilleg72 жыл бұрын
Hi, Very nice solution. Is it possible to add multiple columns at once?
@ThePowerUser2 жыл бұрын
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 Жыл бұрын
@@ThePowerUser Thanks
@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 Жыл бұрын
@@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
@Mondhikit1032 жыл бұрын
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.
@ThePowerUser2 жыл бұрын
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
@raitup002 жыл бұрын
Nice explanation, man!
@seanjames81262 жыл бұрын
Thanks for this amazing video
@davidcox70472 жыл бұрын
perfect, looking all day for this answer and you explained quickly and clearly:)
@kebincui2 жыл бұрын
Fabulous!👍👍
@ChPetru2 жыл бұрын
Thank you so much!!
@alexeimatcov79282 жыл бұрын
Very useful piece of information. Thanks a lot!
@kennethstephani6922 жыл бұрын
Great video!
@kennethstephani6922 жыл бұрын
Great video!,
@krzyzakpolska2 жыл бұрын
Amazing video!!!
@REgamesplayer2 жыл бұрын
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.
@joelngige57762 жыл бұрын
Super Excellent Video!!!
@SamVeneman2 жыл бұрын
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)?
@ThePowerUser2 жыл бұрын
this article might help you --> docs.microsoft.com/en-us/power-query/handlingpaging
@omarsierra37092 жыл бұрын
Simply Magic bro, Thanks for this helpful content!!
@adunbar222 жыл бұрын
Excellent Video! This is exactly what I was looking for and needed. Thank you very much.
@rajsekharjesollureddi87372 жыл бұрын
It's very valuable information and understandable very clear thank you
@CSalcedoDataBI2 жыл бұрын
Thank you, very good.
@chakrabmonoj2 жыл бұрын
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 Жыл бұрын
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.
@chakrabmonoj2 жыл бұрын
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?