cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
msharp
Super User (Alumni)

Quick way to filter data table

I'm not sure why, but there is no Outer Joins in JMP that I can find.  These are helpful if you want to filter one data table by another data table.  Because of this, all I've come up with is the below script but it's very slow in large data tables (1 million+ rows).  Any suggestions to improve the script would be helpful.

dt << Clear Select;

for(i=1, i <= nitems(filter_list), i++,

  dt << Select Where(Column(dt, "filter_col")[] == filter_list, current selection("extend"))

);

dt << Delete Rows;

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson
Community Manager Community Manager

Re: Quick way to filter data table

Use the Match Flag option to add a column that indicates which tables contributed to a row in the resulting table. You can delete rows with a 3 in this column.

From the documentation:

If a one (1) appears in this column, the data originated from the first (active) table.

If a two (2) appears in this column, the data originated from the second table.

If a three (3) appears in this column, the data was found in both the first and second tables.

10600_matcolsdial.png

-Jeff

View solution in original post

4 REPLIES 4
Jeff_Perkinson
Community Manager Community Manager

Re: Quick way to filter data table

You can use the Include Non-matches options in the Tables->Join dialog to get outer joins.

10596_matcolsdial.png

Will that work for you?

-Jeff
msharp
Super User (Alumni)

Re: Quick way to filter data table

I want either of the two on the bottom right.

10597_pastedImage_0.png

Jeff_Perkinson
Community Manager Community Manager

Re: Quick way to filter data table

Use the Match Flag option to add a column that indicates which tables contributed to a row in the resulting table. You can delete rows with a 3 in this column.

From the documentation:

If a one (1) appears in this column, the data originated from the first (active) table.

If a two (2) appears in this column, the data originated from the second table.

If a three (3) appears in this column, the data was found in both the first and second tables.

10600_matcolsdial.png

-Jeff
msharp
Super User (Alumni)

Re: Quick way to filter data table

Thank You!  While this adds a few extra steps (select where, delete rows) it gets the job done!  Nicely.

It would be nice in a future version if there was an Exclude Matches box that would automatically remove all '3' match flags.  Just a thought.

Recommended Articles