Hello experts,
I will try my best to explain the problem I am having.
1. I have 2 data sets: one containing the median values of lot-A in different columns and one containing std dev of some parameters.
Median data table

Std dev data table:

2. I want to compare the risk_lot column value row value(5) to [baseline(4) + 2*std dev datatable:Lot(2)] and [baseline(4) - 2*std dev datatable:Lot(2)]. If it falls between this range i.e. 0<5<8 for this example, then I want to color risk_lot cell to green and if it falls outside the window then red.
3. I tried with the code below but its giving me "Cannot convert argument to number error" that makes me think that somehow my syntax is messed up.
4. Looked at couple of examples in the forum as well but does not work.
5. I have jmp12.
Please help. Thanks.
dt_summary<<select where(:Statistics=="Std Dev");
dt_std_subset=subset(output table("Std summary"),selected rows(1),selected columns(0));
dt_summary<<Bring Window to Front;
dt_summary<<invert row selection;
dt_summary<<select where(:Statistics=="Median");
dt_med_subset=subset(output table("Median summary"),selected rows(1),selected columns(0));
current data table(dt_med_subset);
ncol=N cols(current data table());
For Each Row(
For(i=4,i<ncol+1,i++,
If ((column(i)>formula(column(3)+2*column(dt_std_subset,3)))|(column(i)<formula(column(3)-2*column(dt_std_subset,3))),
Column(i)<<color cells ("red",Row()),Column(i)<<color cells("green",Row());
);
);
);