Names Default to Here(1);
Query = current data table();
Query_piv = (Data Table( "SO Query" ) << Tabulate(
Add Table(
Column Table(
Grouping Columns( :Year, :Week ),
Analysis Columns( :QTY Ordered )
),
Row Table(
Grouping Columns( :Item, :Item Description, :Channel, :Product Type )
)
)
));
Query_tab = Query_piv << Make Into Data Table;
Query_piv << close window;
Col_Start = 5;
Query_tab << group columns("Weeks",column(Col_Start), N cols(Query_tab) - Col_Start + 1);
Col_group = Query_tab << get column group ("Weeks");
Query_stack = Query_tab << Stack(
columns( Column Group( "Weeks" ) ),
Output Table( "Stacked History" )
);
I have a set of data (weekly order volume) that I'm tabulating and then stacking. This script works fine if I run it pieces at a time. However, when I try to execute it as a whole I get the following error. Any ideas?
