Forum Discussion
PowerBI_Query
1 year agoHelper II
Filter duplicate rows with latest date
I have a data table as shown in the sample file Sheet1 (before) I need the output as shown in Sheet2 (after) The data is not sorted. I need to exclude duplicate rows using latest date as criteri...
ronrsnfld
1 year agoSuper User
Your link doesn't work, but one way is to
- Group the table by whatever columns you wish to check for duplications
- Select the row with the latest date
- Re-expand the grouped table
Table.Group(#"Previous Step",#"List_of_Cols_to_Check_For_Duplicates",{
{"DeDuped", (t)=>Table.SelectRows(t, each [Date]=List.Max(t[Date]))}
The code is placed as an additional step in the Advanced Editor.
PowerBI_Query
1 year agoHelper II
This is the link