I'm very new to pipeline pilot. So,the questions I ask are might be simple to most users in this community. But, I just could't figure it out. I've been trying to figure out how to filter out duplicate value for a column(ex. subject id). So, if there is a duplicate subject id, i would like the whole row (with many columns) to be output into a different table. One table will have all distinct subject id. The other table will contains all the duplicates. If 001 appears 3 times, then the first 001 row will go to the distinct table, the other two 001 will go to the duplicate table.
or
All three 001 s can go to the duplicate table.
Is there a way to do one or other option?
Also, how to detect missing value? row 1 has subject id column missing but other columns have value. How to output the row with missing subject id?
Last question. I have a time value 9:00 in the collection time column. When the file got read in using excel reader, the time 9:00 becomes a date, ex Dec. 21, 1983. How can I read time value properly?
Will appreciate any the input!
or
All three 001 s can go to the duplicate table.
Is there a way to do one or other option?
Also, how to detect missing value? row 1 has subject id column missing but other columns have value. How to output the row with missing subject id?
Last question. I have a time value 9:00 in the collection time column. When the file got read in using excel reader, the time 9:00 becomes a date, ex Dec. 21, 1983. How can I read time value properly?
Will appreciate any the input!

For your first issue - separating records with duplicate values the 'First Occurrence Filter' is your friend. Info from the component Help copied below.
First Occurrence Filter
Passes data records for which the values of specified properties have not been seen on any previous record
For each incoming data record, the value of the property specified by KeyProperty is checked. If the value has not been seen in earlier records, the record is sent out the Pass port. Otherwise it is sent out the Fail port.For your second issue - grouping all records that have a value that is duplicated then you could investigate the deprecated 'Unique Filter' component - but pay attention if you don't have consistent and complete data in your records since it involves a merging (and unmerging if you want the records back) action.
To detect a missing value you could use the 'Property Defined' filter component or build your on with a Custom Filter using "[property name] is defined" as the expression. Any records without a value in the indicated property will be passed out the fail port.
For your time value issue
(disclaimer -- this may be somewat dependent on how the time has been entered in your Excel file and also what you ultimately what to do with that value)
The time most likely does exist in your record however it's not exposed because the default rendering of a date value from the Excel Reader component is to just show the date. If you go to the component Additional Options you can change the DateFormat setting to 'DateTime'. Now the record will show the time, appended to whatever date it's spitting out. To clean that up I encourage you to browse through the Date and Time functions laid out in the support documentation. There's a few intricacies and some formatting string notation to be aware of when you start playing around with that particular data type.
(a dirty alternative is to set the component parameter 'Preserve Excel Formats' to True). I believe this will convert your DateTime value into a pure string. If you want to further manipulate property as a time you probably don't want to do this.)
Hope the above helps you on your way.
Tris
Thank you for taking the time to explain and help me! I explored the first occurrence filter and the unique filter. They both work well.
I've also tried the property is defined filter and property is defined in a custom filter. But, the missing record still went through the pass port. So, the missing subject id record is still there. Would you know what could be the reason that missing subject id was able to go to the pass port?
To do that you can use the PilotSCript function IsNull.
Use a Custom Filter and enter an expression such as ...
not isNull(property('Insert Property Name here'))
...
Records with a truly null value will get passed out the fail port. The caveat here is the incoming data.It may be that the property value is an empty string eg "" which isn't technically null and wouldn't get picked up by the above expression.
To catch that kind of thing you could use ....
mypropertyname ne ''
Depends somewhat on what your incoming data looks like and you should play around to work out what strategy suits your application. Perhaps it would be worth your while to have some kind of data curation step upstream to make sure all records are clean and consistent - again - depends on how sophisticated you want your solution to be.
The documentation in the Help Center is very good (IMHO) and worth spending some time going through. At least the "x Basics" chapters since that will give you a pretty solid grounding and will be applicable to pretty much everything you use PP for so it's not wasted time.
Tris
varname ne '' worked! I did try the first solution first. missing := not isNull(property(subj_id)). The result was 'true' for every rows, include the one with missing subj_id.
It is interesting to find out that empty does not consider as missing.
Thank you for all the help, I really appreciate it!