Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Check different data in other column

michal100cki
6 - Meteoroid

Hello,

 

Each month I receive data from HR department with people who reports hours they worked on different projects. Sometimes it happens that unique personal number for person has to be changed and for some period people report on wrong number, later they discover they should report on different number so they input data for correct number but they are unable to correct previously inputed data. In the end it results that more hours are reported that they have actually worked. 

 

It looks like that in orange wrong data which I need to filter out:

 Employee namedatePersonal numberNumber of hours
John Wick2018-07-1754698
Adam Low2018-07-1777778
Roger Moore2018-07-1798778
John Wick2018-07-1854698
Adam Low2018-07-1823568
Adam Low2018-07-1877778
Roger Moore2018-07-1898778
John Wick2018-07-1954698
Adam Low2018-07-1923568
Adam Low2018-07-1977778
Roger Moore2018-07-1998778

 

how can I write a filter that checks each name if there are more then one personal number for each person and filter out that data?

 

Possible Example: If [Employee name] has more then one unique [Personal number] then filter those records.

2 REPLIES 2
DavidP
17 - Castor
17 - Castor

You can use the Unique tool and pick both employee name and date as your uniqueness criteria. The Unique tool will retain the first line and put subsequent lines in the dups output.

 

You have to be sure that the 1st line is the one you want to retain and you can do with with a sort tool in front of the Unique tool and set your sort criteria to ensure that the 1st line is the correct one.

michal100cki
6 - Meteoroid

I modify your solution to local circumstances but  in general this is what i was looking for and it worked well! :) Thank you David!

Labels