Hi all
I have a data table with some numerical columns (VAL1, VAL2) and some char columns (CATEG1, CATEG2, CATEG3).
I want to write a script to crete a summary table reporting the average value of each numerical value grouped by "CATEG1,23"; this easily done:
Data Table( "MyTable" ) <<
Summary(
Group(
:Lot,
:Name( "CATEG1" ),
:Name( "CATEG2" ),
:Name( "CATEG3" ),
),
Mean( :VAL1),
Mean( :VAL2),
Freq( "None" ),
Weight( "None" ),
)
However, I'like also to filter the results according to CATEG1,2,3: e.g. to include only results with CATEG1=="Standard".
I tried brutally inserting a "where" clause, but it doesn't seem to wiork
where(:CATEG1 == "Standard")
I know that this can be easily done interactively, but I'd like to do it via script.
Thanks
EV1976