Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I'm tyring to remove duplicate on the ID column but would like to keep the row based on the date with the lowest value. Basically, keep the ID with the earliest instance. I tried the Sort -> Table.Buffer -> Remove Duplicate approach but that process is incredibly slow most likely because the dataset is an append of multiple large CSV files.
Are there other approaches that are more efficient?
Thanks in advance!
David
Solved! Go to Solution.
I'd suggest doing a Group By in the query editor. Group by ID and use Min as the aggregation type for the Date column.
Hi @dyabes
Attached the sample file for your reference.
Regards,
Cherie
Hi Alexis
I am also facing similar issue: I have three columns : Supplier Name, Status and Points. there is duplicate value in Supplier and unique value in Status and Points. I need to display the Supplier with lowest points and display corresponding status. Basically need to remove duplicate suppliers keeping the lowest points record
Regards
Arun
I'd suggest doing a Group By in the query editor. Group by ID and use Min as the aggregation type for the Date column.
Thank you. I think I should have provided the complete dataset I'm wokring on. I also need to keep the corresponding row values from other columns
Hi @dyabes
Attached the sample file for your reference.
Regards,
Cherie
Hi Dear
You need to use Group By.
Select Group By -> Select ID column as Group BY and then in Operation select Min and in Column Select Date.
You will get your result.
You can do what I suggested an then merge the extra column(s) back in after.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
74 | |
73 | |
56 | |
38 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |