JMP 18:
New Column( "unique",
Formula(
As Constant(
Length(
Associative Array( :SN[Where( :Flagged == "Yes" )] ) << Get Keys
)
)
)
)
JMP19:
dt << New Column( "unique",
Formula(
Col Max(
If( :Column 2 == "y",
Col N Unique( :Column 1, :Column 2 ),
.
)
)
)
);
JMP 19.x:
dt << new column("unique",
Formula( Col N Unique(If(:Flagged == "y",:SN, .) )
));
JMP20?
dt << new column("unique",
Formula( Col N Unique(:SN, Where(:Flagged) )
));
The last one is my favorite - it will facilitate certain types of data analysis a lot!
please vote: Col Median (and others): add "Where" option
otherwise we have to wait for v25 ...