i have a data set and i want to count the number of "OK" and put the calculate value at the bottom of the row for each column.
For example:
| ab | ac | ad |
| OH;OC; | OK | OK |
| OH;OC; | OK | OK |
| OH;OC; | OK | OK |
| OK | OK | OK |
| OK | OK | OK |
| OK | OK | OK |
| OK | OK | OK |
| OK | OK | OK |
| OK | OK | OK |
| 6 | 9 | 9 |
For(i=1,i<=NCol(dt),i++,
Column(dt,i)[NRows(dt)] = Char(N Rows( dt<< get rows where( As Column(dt,i) == "OK")));
)
I was using the code above but it seems to not let me put the value in for a locked columns.
when i use try() it just ignores it and continues on the script.
The locked columns have formulas in them. is there another way to write this or over write locked column error , i am using jmp 14