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
Jo_E
Level III

Similar functionality as XLOOKUP() from Excel in JMP?

I have a data table where for each measured value the batch (#XXXX, #YYYY, #ZZZZ#), the storage temperature (5, 25 or 40) and the storage time (0, 3, 6, 9, 12) is specified. The idea is to subtract from each measure value the value with a storage time of 0 and the same batch and storage time as the in the row. 
I was able to slove this in excel with XLOOKUP(). Is this also possible in JMP?

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Similar functionality as XLOOKUP() from Excel in JMP?

Based on your example data, the smallest Measured Value is always for Storage Time = 0, is this always true? If this is the case you can use Col Min

:Measured Value - Col Min(:Measured Value, :Batch, :Temperture)

And if this isn't always the case you need a bit more complicated formula

:Measured Value - Col Min(If(:Storage Time == 0, :Measured Value, .), :Batch, :Temperture)

jthi_0-1754403575496.png

 

-Jarmo

View solution in original post

5 REPLIES 5
hogi
Level XIII

Re: Similar functionality as XLOOKUP() from Excel in JMP?

Please have a look at Col ...()  aggregation - they are much more powerful than XLookup().

 

In the Marketplace you can find the Normalization GUI.
It can be used to calculate the difference y - and many other cases ...
https://marketplace.jmp.com/appdetails/Normalization+GUI

hogi_0-1754400136854.png

 

Jo_E
Level III

Re: Similar functionality as XLOOKUP() from Excel in JMP?

Maybe I am wrong but to my understanding this does not resolve the current issue and there maybe an overview on the Col funtions available?

Jo_E
Level III

Re: Similar functionality as XLOOKUP() from Excel in JMP?

This file would be an example for such a table. And for each data set within the table the correct T=0 should be used for calculating the difference and the correct one is the one from the same batch and the same temperature, but also the storage time =0. I hope this makes it a bit clearer. 

jthi
Super User

Re: Similar functionality as XLOOKUP() from Excel in JMP?

Based on your example data, the smallest Measured Value is always for Storage Time = 0, is this always true? If this is the case you can use Col Min

:Measured Value - Col Min(:Measured Value, :Batch, :Temperture)

And if this isn't always the case you need a bit more complicated formula

:Measured Value - Col Min(If(:Storage Time == 0, :Measured Value, .), :Batch, :Temperture)

jthi_0-1754403575496.png

 

-Jarmo
Jo_E
Level III

Re: Similar functionality as XLOOKUP() from Excel in JMP?

Thank you, that works!

Recommended Articles