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!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

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

Setting a column value based on multiple conditions

Hi, 

I'd like to find a value on a 'CD' column based on 'Depth' value, for corresponding 'Wafer' and 'Lot ID'.

Below is the example table I created, I have multiple 'CD' values at different 'Depth' values, and there are multiple 'Wafer' and 'Lot ID' for each specific wafers. What I need to find is 'CD' value at 20nm 'Depth', to create normalized CD plot.

 

I know I can use 'Col Mean' if I am to normalize by the column average. How do I normalize by CD at specific depth in this case?

 

Below highlighted portion is what I pasted manually...just to give an example of what I want. 

 

Thanks

EdgeMarmoset719_1-1731018413251.png

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
hogi
Level XIII

Re: Setting a column value based on multiple conditions

For this application please check the Normalization GUI .

 

activate

hogi_0-1731019909758.png

and use

hogi_1-1731019975871.png


edit:
the GUI generates formula columns based on the logic in @txnelson 's post below.

View solution in original post

txnelson
Super User

Re: Setting a column value based on multiple conditions

The formula would be

col mean( If( :depth == 20,:CD,.), :Wafer, :Lot ID)

Since only 1 row will be found to have :Depth=20, Col Mean() could also be substituted with Col Sum() etc. 

 

One could also subset all of the Depth=20 rows into a new data table, and then Change in the subsetted data table the column CD columns name to CD(20 mm) and then using

     Tables=>Update

join the subsetted data back into the original data table, matching on Wafer and Lot ID

Jim

View solution in original post

3 REPLIES 3
hogi
Level XIII

Re: Setting a column value based on multiple conditions

For this application please check the Normalization GUI .

 

activate

hogi_0-1731019909758.png

and use

hogi_1-1731019975871.png


edit:
the GUI generates formula columns based on the logic in @txnelson 's post below.

txnelson
Super User

Re: Setting a column value based on multiple conditions

The formula would be

col mean( If( :depth == 20,:CD,.), :Wafer, :Lot ID)

Since only 1 row will be found to have :Depth=20, Col Mean() could also be substituted with Col Sum() etc. 

 

One could also subset all of the Depth=20 rows into a new data table, and then Change in the subsetted data table the column CD columns name to CD(20 mm) and then using

     Tables=>Update

join the subsetted data back into the original data table, matching on Wafer and Lot ID

Jim
hogi
Level XIII

Re: Setting a column value based on multiple conditions

Or Col Median()   : )

It has the advantage of running in reasonable time even in the case of non-numeric :depth.

 

 

In future, something like

col mean(:CD, :Wafer, :Lot ID, Where(:depth ==20))

might get possible as well:

hogi_0-1731046519895.png

 

For more information on both topics, click here:
Tips and Tricks - best practice with JMP/JSL 

 

Recommended Articles