Power Query - Get Top N by Group

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

BCTI

BCTI

Күн бұрын

Пікірлер: 36
@sujanmdsiful
@sujanmdsiful 25 күн бұрын
Most underrated channel
@bcti-bcti
@bcti-bcti 25 күн бұрын
@@sujanmdsiful Thank you. Hopefully, not for long. Thanks for watching.
@sujanmdsiful
@sujanmdsiful 25 күн бұрын
@bcti-bcti inshallah. I pray for your success
@janesheng7113
@janesheng7113 5 ай бұрын
This video has been incredibly helpful! I was smiling all the way through as I watched. Thank you!
@bcti-bcti
@bcti-bcti 5 ай бұрын
@@janesheng7113 Im so glad you found it so enjoyable. Thanks for watching.
@petercompton538
@petercompton538 5 ай бұрын
This is excellent - very useful and very well explained! Thanks
@bcti-bcti
@bcti-bcti 5 ай бұрын
@@petercompton538 thanks for watching!!!!!
@Luciano_mp
@Luciano_mp 5 ай бұрын
Great work, awesome! Thank you very much!
@bcti-bcti
@bcti-bcti 5 ай бұрын
Thank you for saying so. And thanks for taking the time to watch.
@IvanCortinas_ES
@IvanCortinas_ES 5 ай бұрын
A very good tutorial. Thank you for this great job!!!
@bcti-bcti
@bcti-bcti 5 ай бұрын
@@IvanCortinas_ES thanks for watching!!!
@flaviogarlatticosta
@flaviogarlatticosta 3 ай бұрын
Thank you for this wonderful tutorial, English is not my native language however I learned many things from this very well done m code and with a logic never seen until now. Good work.
@bcti-bcti
@bcti-bcti 3 ай бұрын
Thank you for taking the time to watch and put up with my accent. I hope it wasn't too irritating 😄
@flaviogarlatticosta
@flaviogarlatticosta 3 ай бұрын
@@bcti-bcti Thank you, for the “Charming Tennessee accent” (I guess) 🙂
@kebincui
@kebincui 5 ай бұрын
great as always ❤👍🏻
@bcti-bcti
@bcti-bcti 5 ай бұрын
@@kebincui thank you!!!!
@excel_along_the_way
@excel_along_the_way 5 ай бұрын
Thank you for an excellent tutorial, I must really check out again that parameter video, Next video, getting the same results with excel formulas, like a single cell report,
@bcti-bcti
@bcti-bcti 5 ай бұрын
I'm unclear about what you are requesting for the next video. Thanks.
@excel_along_the_way
@excel_along_the_way 5 ай бұрын
@@bcti-bcti I see that this seems only possible with PQ just ignore my request.
@willbedeadsoon
@willbedeadsoon 5 ай бұрын
Like before watch, 'cause I know this channel as a top-class soure of information!
@bcti-bcti
@bcti-bcti 5 ай бұрын
This was published accidentally. It will be back up CORRECTLY in a few hours. Sorry for the confusion.
@bcti-bcti
@bcti-bcti 5 ай бұрын
@@willbedeadsoon all fixed. Thanks for being patient.
@jerrydellasala7643
@jerrydellasala7643 5 ай бұрын
Great video & technique (and thanks for posting the file!). I ran into one small issue with the Parameters SOLUTION file. When I had more rows in the report, the columns were not retaining the formatting. I'm on the Beta and maybe it's a quirk there because when I checked the Properties of the table, you had Adjust column width unchecked which is fine, and you have Preserve cell formatting CHECKED which would make one think I shouldn't have had that issue. Luckily I found that checking Preserve column sort/filter/layout fixed the problem. As I said, it might be a Beta issue. It might have been helpful to point out that the list of Group By columns could NOT be included in the final report. Anyway, still great lesson!
@bcti-bcti
@bcti-bcti 5 ай бұрын
Yeah, I encountered that same issue. I found it quite irritating. Thanks for your observations and input.
@billgillaspey9036
@billgillaspey9036 3 ай бұрын
Q: why did the order of the columns change from 13:45 to 14:05 where columns are being selected...?
@bcti-bcti
@bcti-bcti 3 ай бұрын
It's not that the columns changed, it's that after the data was extracted, the table was scrolled to the right. The other columns (like "Sales Representative", "Date", "Product", and "State") are off-screen to the left. Thanks for watching and the question.
@flyingHubby
@flyingHubby 5 ай бұрын
Great video. Thanks. but I'm missing the link to the example files.
@bcti-bcti
@bcti-bcti 5 ай бұрын
This was published accidentally. It will be back up CORRECTLY in a few hours. Sorry for the confusion.
@bcti-bcti
@bcti-bcti 5 ай бұрын
@@flyingHubby all fixed. Thanks for being patient.
@jerrydellasala7643
@jerrydellasala7643 5 ай бұрын
You forgot the sample file!
@bcti-bcti
@bcti-bcti 5 ай бұрын
This was published accidentally. It will be back up CORRECTLY in a few hours. Sorry for the confusion.
@bcti-bcti
@bcti-bcti 5 ай бұрын
@@jerrydellasala7643 all fixed. Thanks for being patient.
@alvinzang3738
@alvinzang3738 5 ай бұрын
Using Table.MaxN would be much easier to get the same result.
@bcti-bcti
@bcti-bcti 5 ай бұрын
Thanks for the suggestion. Can you provide a sample of M code to demonstrate your technique? Thanks.
@alvinzang3738
@alvinzang3738 5 ай бұрын
@@bcti-bcti Yes, of course. The general idea remains the same, with a slight improvement. I might write the core part of the code like this: let Source = Excel.CurrentWorkbook(){[Name = "SalesData"]}[Content], // Retrieve parameters from the parameter table itemCount = Parameters[Item Count]{0}, colToGroup = Parameters[Group By]{0}, // fnToUse = {Table.MinN, Table.MaxN}{Number.From(Parameters[TopBottom]{0} = "Top")}, fnToUse = if Parameters[TopBottom]{0} = "Top" then Table.MaxN else Table.MinN, Grouped = Table.Group( Source, colToGroup, { "GetNRecords", each fnToUse(_, "Sales", itemCount) } ) in Grouped
@bcti-bcti
@bcti-bcti 5 ай бұрын
@@alvinzang3738 I whole-heartedly agree. Your solution is MUCH simpler than mine. Thanks for sharing it!!! 👍👍👍
Power Query - Dynamic Column Selection
10:12
BCTI
Рет қаралды 6 М.
Power Query - Avoid "Helper Queries" (+10 Cool Tricks)
18:40
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Power Query - Sum Last N Columns
15:59
BCTI
Рет қаралды 1,3 М.
Beautiful SVG Targets vs Actuals Indicators in Power BI (No Custom Visuals!)
18:02
The Introverted Manager Show
Рет қаралды 2,5 М.
Power Query - Alternate Group By Strategies
12:29
BCTI
Рет қаралды 5 М.
Power Query - List.Buffer to do a Million row Lookup
6:53
BA Sensei
Рет қаралды 10 М.
Power Query - Rounds Differently than Excel (DANGER)
9:47
Power Query - Extract PDF Tables by the Table's Content
15:37
The Correct Way to Run Database Migrations in EF Core
19:51
Nick Chapsas
Рет қаралды 38 М.
Add manual information into a query | Power Query | Excel Off The Grid
9:46
SQLc is the perfect tool for those who don't like ORMs
28:11
Dreams of Code
Рет қаралды 114 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН