AnsweredAssumed Answered

Get the number of unique entries on a value list

Question asked by Badam on Jan 23, 2014
Latest reply on Jan 23, 2014 by philmodjunk

Title

Get the number of unique entries on a value list

Post

     Using script step(s) I am looking for how many unique values are contained within a value: list, (there are duplicates within the list) I have the list defined as:

Set Variable [$VendorList ; Value: List ( BOM::Vendor ID ) ]

I would like to add a script line that defines another variable ($NumOfVendors) representing total unique values in the $VendorList

if the list were:

VID001

VID002

VID001

VID003

then the variable would be set at $NumOfVendors = 3

Outcomes