cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
rmthomas
Level III

Clear selected row cells based off string that ends with

Hello everyone, 

 

Here is an example that I need help with.

 

rmthomas_0-1635167178453.png

 

I am trying to clear specific rows based off of the last part of column Characteristic (.X, .Y, .Z) and clear the LSL, Target, USL. this is just a basic table and I have many different Characteristics and the ones I need to clear are all that end in .X, .Y, .Z.

 

I have tried to use this JSL code but I cant seem to get anything to happen. just for the characteristic .X and the USL.

 

dt111 = data table ("Untitled");

curRows = dt111 << get rows where(:Characteristic (ends with(".X")));
:USL[curRows] =.;

Any help would be greatly appreciated.

 

Thanks, 

-Ryan

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Clear selected row cells based off string that ends with

 Syntax for Ends With seems to be wrong. Try:

curRows = dt << Get Rows Where(Ends With(:Characteristic, ".X"));

and check what values curRows has.

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Clear selected row cells based off string that ends with

 Syntax for Ends With seems to be wrong. Try:

curRows = dt << Get Rows Where(Ends With(:Characteristic, ".X"));

and check what values curRows has.

-Jarmo
rmthomas
Level III

Re: Clear selected row cells based off string that ends with

@jthi  Thank you this works great!

Recommended Articles