Forum Discussion

MSargeant's avatar
MSargeant
Frequent Visitor
3 years ago
Solved

Find the Max Date by Year for Multiple IDs Using Two Columns with Multiple Years in Power Query

Hi All,   I am looking for a way to filter or trim a data set in Power Query that has dates from multiple years for over 1k unique IDs. I need to keep the rows with the most recent recorded date fo...
  • MSargeant's avatar
    MSargeant
    3 years ago

    Hi,

    Thanks for your response. However, I don't have duplicate rows in my data - those have already been removed. I need  the most recent recording date per year (2018, 2019, 2020, 2021 2022) for each unique ID. Each unique ID should be left with the most recent recording date for every year which would result in 4-5 rows per unique ID.