For example, when I want to divide each value of column 1 from data table 1 by each value of column 2 from data table 2. I seem to have issues doing so and I am wondering why this error pops up "Scoped data table access requires a data table column or variable{1} in access or evaluation of 'dtbinsum:column' , dtbinsum:column/*###*/(Nrows) /*###*/"
The part of my script looks like this:
//Start of script
dt = currentdatatable();
dtbinsum = dt << Summary(
Group( :Data File, :Lot id, :SBIN ),
Freq( "None" ),
Weight( "None" ),
statistics column name format( "column" ),
Link to original data table( 0 )
);
dtbinsum<< Select Where( dtbinsum:sbin != 1 );
dtbinsum<< Delete Rows;
dtbinsum2 = dt << Summary(
Group( :Lot id ),
N(:SBIN),
Freq( "None" ),
Weight( "None" )
);
yield = {};
for(i=0, i<Nrows(dtbinsum2), i++,
yield_temp = (dtbinsum:column(Nrows))/(dtbinsum2:column(N(SBIN)));
Insert Into(yield,yield_temp);
);
Show(yield);
//End of script
I know my way is probably not the most efficient way to do it, not to mention the error that shows, but does anyone have a solution to this?