Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all,
I have a table that among other columns has an ID and a Timestamp which records the moment when that row was created. For some reasons I'm not going to dive into some IDs are duplicated with different timestamps. I would like to remove them in Power Query by saying: if there are multiple rows with the same ID, keep only the one with the minimum Timestamp. The ID column should in the end be the primary key of the table. I would be able to do this in DAX but I'm not capable of doing that in M.
Thanks for any help.
Solved! Go to Solution.
You can achieve that by doing the following steps:
You can achieve that by doing the following steps:
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 6 | |
| 5 | |
| 5 |