Hey, I'm new to JMP scripting, but somewhat used to python language. I'm trying to achieve the following with my dummy test table below:
1) Cycle through all rows (both before and after the row) and do calculations only on those rows where Cuvette == 11, remaining rows where Cuvette != 11 the "Output" can be set to NA or whatever.
2) The calcuation itself is between two separate rows. In rows with Cuvette == 11, the 850 nm cell of the row has to be divided with the 250 nm cell from the row that meets two conditions:
a) Cuvette == 12
b) The Pass value has to match up between the rows, e.g. Pass value for cuvette 11 == Pass value for Cuvette 12
| Pass |
850 nm |
250 nm |
Cuvette |
Output |
| 1 |
100 |
200 |
11 |
100/500 = 0,2 |
| 2 |
400 |
500 |
11 |
400/400 = 1 |
| 3 |
300 |
100 |
11 |
300 / 900 = 0.33 |
| 1 |
700 |
500 |
12 |
NA |
| 2 |
200 |
400 |
12 |
NA |
| 3 |
400 |
900 |
12 |
NA |
| 1 |
400 |
800 |
13 |
NA |
| 2 |
500 |
700 |
13 |
NA |
| 3 |
300 |
700 |
13 |
NA |