@Gonzalez Jr, Cruz A (Contractor)
Within Power BI, Edit the query > Advanced Editor. Now, assuming the query STEP that corresponds to the picture you uploaded is the #"Changed Type" step (otherwise adapt), below that step replace everything with:
GroupedSerialN = Table.Group(#"Changed Type", {"Serial Number"},
{"SN_Table", each
Table.FirstN(
Table.Sort(_, {<!-- -->{"Last Sync",Order.Descending}}),
1
),
type table
}
),
CombinedTables = Table.Combine(GroupedSerialN[SN_Table])
in
CombinedTables
NB (EDITED) I assumed [Last Sync] isn't ordered/sorted by [Serial Number]. If it is let me know as the above Table.Sort would not be required and Table.FirstN would be replaced with Table.LastN
If you're not familiar with Power Query and struggle implementing this post your complete query code