Forum Discussion

vjnvinod's avatar
vjnvinod
Impactful Individual
5 years ago
Solved

Exclude data in power query using coloumn

Hi All,

 

I need to create a coloumn in power query using a condition 

where

if 

Employee GUI coloumn is duplicate & Engagement ID coloumn is duplicate & Transaction date is duplicate but Hours are reversed let say -5 and 5

thn

show me that coloumn as No, else yes

 

how to do that, here the issue is with hours coloumn as i need to consider negative and postive of same number as Duplicate

so if hours=-5,5 meets the above if condition, hours should also be duplicate

 

  • Hi vjnvinod ,

     

    Are you trying to remove duplicate rows based on Employee GUI ,  Engagement ID , Transaction date and reversed  Hours?

     

    You can follow the steps:

     

    Create a new column by Hours column:

     

     

    Then multi-select Employee GUI ,Engagement ID, Transaction date and the new column. Right click and Remove Duplicate.

     

     

    If this post help, please consider accept it as the solution to help others find it more  quickly.

     

    Best Regard,

    Dedmon Dai

     

3 Replies

  • Hi vjnvinod 

    it's not really clear what you want.  Are you trying to find duplicate rows? I don't see any duplicate rows in your sample image.

    Can you please post some sample data, not a screenshot, so we don't have to recreate your data.

    thanks

    Phil

    • vjnvinod's avatar
      vjnvinod
      Impactful Individual

      PhilipTreacy 

       

      actually you are right, duplicate rows on 4 coloumns on the above thread and for the the 4th coloumn there is condition

      4th coloumn which is "Hours", should find the duplicate numbers based negative numbers, basically if its -5,5, its duplicate

      and then if all of the rows in the 4 coloumns are duplicate, tn its duplicate, else its not duplicate

  • v-deddai1-msft's avatar
    v-deddai1-msft
    Community Support

    Hi vjnvinod ,

     

    Are you trying to remove duplicate rows based on Employee GUI ,  Engagement ID , Transaction date and reversed  Hours?

     

    You can follow the steps:

     

    Create a new column by Hours column:

     

     

    Then multi-select Employee GUI ,Engagement ID, Transaction date and the new column. Right click and Remove Duplicate.

     

     

    If this post help, please consider accept it as the solution to help others find it more  quickly.

     

    Best Regard,

    Dedmon Dai