Hello Folks,
I have attached a data set. In the data set, I have column called Parameter that contains the name of the columns that are in the data set. I want to first filter the column that corresponds to each unique column name that is present in the Parameter column and then join it to the subset column that I have created and create a variability chart. At this moment I have 2 unique parameters in the Parameter column and this can vary week on week, so I would like it to be parameterized. I have below some of the code that I have done. Any help would be appreciated
Thanks
Pio
dt_2 = Data Table( "jmp_question_T_V0" ) << Summary(
Group( :Parameter ),
Freq( "None" ),
Weight( "None" )
);
lst = column(dt_2,1) << GetAsMatrix();
close(dt_2,no save);
subset_cols = {:Name("PRA"), :Name("WA"), :Name("CH"), :Name("WA_D"),
:Name("CH_D"),:Name("SL_T"),:Name("TST_DATE"),:Name("IL_M"),:Name("QTY"),
:Name("W"),:Name("Parameter"),:Name("h_t_d")};
length (lst)
iparam = 1
while(iparam=length(lst)) {
print(lst[iparam])
dt=dt_1
dt_1 << select where (:Parameter == lst[iparam]) //works
dt<<subset(output table) //works
dt<< subset(all rows, columns(subset_cols))
dt_param<<Subset((dt_1 << select where (:Parameter == lst[iparam])), columns(subset_cols))