- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Select and Exclude Matching Rows based on date
Hi All,
I have 3 columns as shown. For some reasons, I am using formula to concatenate the Mth/Day and the end result is shown in column3. I would like to know how can I exclude cells(using script) that contain 01Jan1904 as I do no need them.
Thank you.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Select and Exclude Matching Rows based on date
Here try this if you want to exclude :
dt=current data table();
dt << Select Where( year(:Column 3) == 1904 ) << exclude;
Uday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Select and Exclude Matching Rows based on date
Thanks Uday!!
I have also just found the solution from Scripting Guide. I has something like this :
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Select Where( :age > 13 );
dt << Hide( 1 );// can change Hide to Exclude
Either way, both are good.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Select and Exclude Matching Rows based on date
Since many different values that JMP cannot interpret will be displayed as January 01, 1904, try this
Names Default to Here(1);
dt=current data table();
xx = dt << get rows where( year(:Column 3) == 1904 );
dt << delete rows(xx);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Select and Exclude Matching Rows based on date
Thanks. I actually intended to exclude those data for Column 3 as in actual case, I have other columns of data (from same rows)that may be useful. I tried with dt << Exclude rows(xx); but does not seems to work. Any suggestion :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Select and Exclude Matching Rows based on date
Here try this if you want to exclude :
dt=current data table();
dt << Select Where( year(:Column 3) == 1904 ) << exclude;
Uday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Select and Exclude Matching Rows based on date
Thanks Uday!!
I have also just found the solution from Scripting Guide. I has something like this :
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Select Where( :age > 13 );
dt << Hide( 1 );// can change Hide to Exclude
Either way, both are good.