Forum Discussion
Adavanced Editor help
I have the following code which takes population data, groups it by field of study and catches only those that are 500K or higher.
Is there a way to do this, so that the filtered table is not grouped, in other words still showing all of the rows and colums before the grouping occured? Thanks in advance!
#"Grouped Rows" = Table.Group(#"Sorted Rows", {"Major Field of Study"}, {{"Field Total", each List.Sum([Value]), type number}}),
#"Filtered Rows1" = Table.SelectRows(#"Grouped Rows", each [Field Total] >= 500000)
While Dales solution will work, on large volume of data it might soon become slow. Then you can use this technique instead: Just add another column in your Group-operation, that adds all the rows back as they were and expand that column afterwards:
Happy and healthy new year everyone :)
4 Replies
- Greg_DecklerCommunity Champion
Invoking ImkeF, if anyone can answer this, she can.
- v-jiascu-msftMicrosoft Employee
- ImkeFCommunity Champion
While Dales solution will work, on large volume of data it might soon become slow. Then you can use this technique instead: Just add another column in your Group-operation, that adds all the rows back as they were and expand that column afterwards:
Happy and healthy new year everyone :)
- AnonymousNot applicable
Thank you guys for taking the time to respond to this - I will try out both of these solutions.