Not sure if I understand this right.
So the reason you are seeing two rows because its unique per day.
For instance, If I have a unique visitor id 123 and I visit on 1st day of the month and last day of the month.
While reporting if you use day as dimension then I would be shown twice, one per day.
However if you use month dimension then Ill be counted only once.
Totally depends on what you are reporting. I dont think you can write a condition to say take the latest date of the ID. Would rather use raw data from Datalake extract and query it in databricks or something.
Let me know if you find any other alternatives Ill be happy to learn too.