Forum Discussion
Mmrtlm
Dec 16, 2021Copper Contributor
Finding top 5s of multiple actors
Hello there everyone, so I've joined some date sets/tables and am almost done with my assignment, I "only" need to determine the top 5 categories of the 5 actors who play the most roles. The latt...
- Dec 20, 2021
If to imitate on such model
first you group by actor_id without aggregation
next sort each Data table by Qty (simplest by adding another column)
and keep Top5 in resulting table
Remove intermediate columns and expand latest one
Mmrtlm
Dec 20, 2021Copper Contributor
I'm on the most recent version of excel.
How would I implement this in power query?
How would I implement this in power query?
SergeiBaklan
Dec 20, 2021Diamond Contributor
If to imitate on such model
first you group by actor_id without aggregation
next sort each Data table by Qty (simplest by adding another column)
and keep Top5 in resulting table
Remove intermediate columns and expand latest one
- MmrtlmDec 20, 2021Copper Contributor
I have no idea how you came up with this.
But it worked perfectly! Thank you so much!
And the excel file helped alot
- SergeiBaklanDec 20, 2021Diamond Contributor
Mmrtlm , you are welcome.
In general you may combine all transformations of grouped tables in one function instead of adding new columns for each transform, but that's cosmetic.