cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

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

getting matched entries from 3 different columns

Hi,

 

I have 3 columns with dates of different types imaging tests done in a timeframe. 

I'd like to see if an individual had done AT LEAST 1 of the 3 different methods in this timeframe.  

For example: I have entries for US, CT and MRI at baseline. An individual could have done US and MRI = yes at least 1 method.  If the person did not have done any imaging test, it would be = no for at least 1 method. 

 But I'm not finding an easy way to understand how to compile this information in 1 single column.

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: getting matched entries from 3 different columns

I think you could use just

 

:mri1dt_0 | :ct1dt_0 | :us1dt_0

but to be a bit more sure I would add Is Missing there. With that you can then do many different types of comparisons, below is one using ! (not) and & (and)

!(Is Missing(:mri1dt_0) & Is Missing(:ct1dt_0) & Is Missing(:us1dt_0))

 jthi_0-1721061175756.png

If you want to have Yes / No, you could use If statement OR value labels column property

jthi_1-1721061315053.png

jthi_2-1721061337496.png

-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: getting matched entries from 3 different columns

Can you provide a small example of how your data is formatted?

-Jarmo
axm8717
Level I

Re: getting matched entries from 3 different columns

Here you go.

I want to create a column that represents the rows that has at least 1 entry in columns of mri, ct and us.

jthi
Super User

Re: getting matched entries from 3 different columns

I think you could use just

 

:mri1dt_0 | :ct1dt_0 | :us1dt_0

but to be a bit more sure I would add Is Missing there. With that you can then do many different types of comparisons, below is one using ! (not) and & (and)

!(Is Missing(:mri1dt_0) & Is Missing(:ct1dt_0) & Is Missing(:us1dt_0))

 jthi_0-1721061175756.png

If you want to have Yes / No, you could use If statement OR value labels column property

jthi_1-1721061315053.png

jthi_2-1721061337496.png

-Jarmo

Recommended Articles