Forum Discussion
Identifying Duplicates
- Anonymous3 years ago
Hi rmba22875 ,
Here are the steps you can follow:
1. In Power Query -- Add Column – Index Column – From 1.
2. Create calculated column.
Column 2 = var _right= VALUE(RIGHT([Column],3)) var _left= VALUE(MID([Column],3,3)) return IF( _left>_right, RIGHT([Column],5)&"/"&LEFT([Column],5), LEFT([Column],5)&"/"&RIGHT([Column],5))Column 3 = var _select=SELECTCOLUMNS(FILTER(ALL('Table'),'Table'[Index]<>EARLIER('Table'[Index])),"1",[Column 2]) return IF( 'Table'[Column 2] in _select ,"Duplicate","")3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
This should be done in Power Query if you're looking to remove duplicates. Go to query editor and you'll a plenty of data manipulation options there
If not, would you elaborate what you're trying to achieve? Are you trying to add a column that identifies duplicates?
Yes we need to apply a column that identifies the duplicates. This is so we can then manipulate the data as we need too as sometimes we need to look at it as a whole and other times without the duplicates.