I have a dimension table with unique data but ever so often it does come up with duplicates when changes are made automatically and I want a way in power query to automatically only include the most up to date unique record.
Here is an example below for the duplicate record with employee 381
Hi @Melissa thanks for this solution. Could you please expand on the _ here?
I have been going through your course on power query and it is really good but need to go it through a few times for it to stick in. Lots of little details to pay attention to. The solution works fine.
Glad to hear you’re enjoying the course and thank you for the positive feedback!
This module covers the “underscore”.
.The each keyword is syntax sugar for a unary function (a function that takes a single argument which is represented by the ‘underscore’). This code is equivalent but maybe harder to read.
@Melissa lets say the start dates were unique and you have different start dates for the same employee how do you modify the code to only pick the row where the start date is max?
OK Melissa will do. Just thought it will be easier to just continue with this thread as it relates to what you looked at previously but if you want me to create a new one will do.