Hi All,
I have been working on this dilemma for a while.
I have a data table and I need to sort series of columns in ascending order which comes after a specific column (Col_Y),
jdt=kdt << Sort(
By( :Name( "0 0" ), :Name( "168H 85C" ), :Name( "504H 85C" ) ), // These columns vary from 2 to 5 or more..
Order( Ascending, Ascending, Ascending )
);
// I do some color coding in the middle
After sorting, I need to stack them up,
edt=jdt<< Stack(
columns( :Name( "0 0" ), :Name( "168H 85C" ), :Name( "504H 85C" ) ),
Source Label Column( "Label_bh_bt" ),
Stacked Data Column( "Data_bh_bt" )
);
My problem is I cannot use this in the code since the numbers and column keeps varying.
I understand how to get the reference of a column by
list = kdt << get column reference();
position = Contains( list, Column( "Col_Y" ) );
How do I move my reference pointer to the next column and probably sort/stack them till I hit empty{} ?
I really appreciate your help.
Thank you.