Forum Discussion
Removing duplicates
- 6 years ago
EmilyM2019 , refer if this can help
Hi EmilyM2019 ,
Some workarounds for reference:
1. You can remove duplicate by using Group by in Power BI Query Editor.
Set it up just like the settings in the picture.
Then, create a custom column.
=let mydate = [PDR complete date] in
Table.SelectRows([All Rows],each[PDR complete date] = mydate)
Then, expand the columns you need and delete the All Rows column.
Duplicates are removed and the most recent PDR complete date remains.
2. You can also use Group by as follows.
The result is as follows.
3. You can as well use Group by as follows.
Then you expand the columns you need and remove the duplicates.
4. You can try this measure which use LOOKUPVALUE function.
Measure =
LOOKUPVALUE (
'Table'[PDR complete date],
'Table'[PDR complete date], CALCULATE (
MAX ( 'Table'[PDR complete date] ),
ALLEXCEPT ( 'Table', 'Table'[Name] )
)
)
You can check more details from here.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.