Forum Discussion
Anonymous
5 years agoNot applicable
Table.Group for AllRows without hardcoding the table columns
Hi All I've been looking for a solution to not having to hardcode the table columns in the Table.Group statement of my query when doing a Group for All Rows. Scenario, every day a file will be e...
- 5 years ago
NewStep=Table.FromRecords(Table.Group(#"Filtered Rows1","PROPERTY",{"n",each Table.Sort(_,{{"IMPORTKEY", Order.Ascending}, {"SYSTEMDATE", Order.Descending}}){0})[n])
wdx223_Daniel
5 years agoCommunity Champion
NewStep=Table.FromRecords(Table.Group(#"Filtered Rows1","PROPERTY",{"n",each Table.Sort(_,{{"IMPORTKEY", Order.Ascending}, {"SYSTEMDATE", Order.Descending}}){0})[n])
Anonymous
5 years agoNot applicable
THANK YOU!
This works perfectly and as I suspected, relatively simple.