Forum Discussion
Creating a powerquery to fix a table
- May 27, 2020
Not sure there is the source data - in another file or in Table/range of the current file. In general that's doesn't matter, just to build the sample
Let select columns from A to E and name selection as Range. Query it.
Add index column to the table.
Sort on first column to combine same ID:s together, right after that sort on Index in descending order to keep the latest records first.
Add one more index column to fix result in memory (or wrap previous step with Table.Buffer() ).
Select first column, Remove duplicates.
Remove bot columns with indexes.
Load result back into the sheet.
Not sure there is the source data - in another file or in Table/range of the current file. In general that's doesn't matter, just to build the sample
Let select columns from A to E and name selection as Range. Query it.
Add index column to the table.
Sort on first column to combine same ID:s together, right after that sort on Index in descending order to keep the latest records first.
Add one more index column to fix result in memory (or wrap previous step with Table.Buffer() ).
Select first column, Remove duplicates.
Remove bot columns with indexes.
Load result back into the sheet.