Hi All,
I've gotten stuck trying to write a script that will Sum cells based on 2 other cells within the same row.
Im able to select the correct rows with
dt << row selection (Select where (:Column 3== CurrentWrkWk & :Column 1== "TIM703"));
Final answer I expect is
The sum should be 3.913.
Ive been reading the scripting index but am lost
Names Default To Here( 1 );
Clear Globals();
dt = current data table();
CurrentWrkWk = 202450;
a1 == dt << row selection (Select where (:Column 3== CurrentWrkWk & :Column 1== "TIM703"));
Var1 =Col Cumulative Sum(:StateHour, a1);
show(Var1);
>
JMP version 17