I have a Bivariate Platform scripted like this:
Fit Group(
biv = Bivariate( Y(Eval(Y_parameters)), X(Eval(X_parameters)), Group By (groupByColumn[1]),
SendToReport(...)
)
)
where
Y_Parameters = {"Param1", "Param2"};
X_Parameters = {"Radius"};
groupByColumn = {"Lot ID"};So, it works ONLY if my groupByColumn is a list of strings, and only if I refer to it as groupByColumn[1]
if I say
stringGroupByColumn = groupByColumn[1]
and then use
Group By (stringGroupByColumn)
it won't work.
WHY?
If I say
groupByColumn = "Lot ID";
and then use it - it also won't work. WHY?
The reason it does not work is because you are not setting a variable value, but rather you are passing a message to thr Bivariate Platform. The proper syntax is
Biv << Group By( :lot ID );
See the Scripting Index for examples