The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hey folks I am trying to get rid of duplicate data and want to keep the record that was last modified.
I added a sort but the remove duplicate transformation seems to ingore it.
Solved! Go to Solution.
I found the solution here in case anyone else needs it.
https://community.powerbi.com/t5/Desktop/Remove-duplicates-based-on-sort-in-Power-Query/m-p/592660#M...
I found the solution here in case anyone else needs it.
https://community.powerbi.com/t5/Desktop/Remove-duplicates-based-on-sort-in-Power-Query/m-p/592660#M...
Thank you for responding guys!
Just to be clear there are several instances for duplicated records in the table.
Will this solution work across the board?
All the duplicates share the same values in the "hs_object_id" column.
Hi,
Share complete information. What do you want to group by? - revenue stream or some other column?
add a new step in PQ
= Table.Group(Source,"REVENUE STREAM",{"data",each Table.Max(_,"LASTMODIFYDATE")})
change the revenue stream to the column that identify the duplicates
then expand the data
pls see the attachment below
Proud to be a Super User!
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
88 | |
71 | |
48 | |
46 |