Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to remove duplicates for each datetime in Power Query

In the image below you see my table which contains duplicate values for each hour and each day. 

 

I would like to remove the duplicates for each datetime.

 

 

another example below:

 

01/01/2022 1:00:00Y
01/01/2022 1:00:00Y
01/01/2022 1:00:00Z
01/01/2022 2:00:00X
01/01/2022 2:00:00X
01/01/2022 2:00:00Y

 

Expected output:

 

01/01/2022 1:00:00Y
01/01/2022 1:00:00Z
01/01/2022 2:00:00X
01/01/2022 2:00:00Y

 

 

4 Replies

  • Hello Anonymous !

    You can remove duplicates based on 2 columns.

    ā€ƒ

  • Hello Anonymous !

    You can remove duplicates based on 2 columns.

    ā€ƒ

  • Hi,

    first insert a merge column

    then remove duplicates in your merged column

    then remove merged column

     

    If this post is useful to help you to solve your issue consider giving the post a thumbs up 

     and accepting it as a solution !