Sto utilizzando quanto segue per generare un elenco di colonne, che varia ma ha sempre un "X_Clean" nel nome:
col_list = dt<<GET column="" names="">0, i--, if(!contains(col_list[i], "X_Clean"), rimuovi da(col_list, i); ) );</GET>
Ora sto provando a creare una casella di tabulazione ma non sono sicuro di come fare riferimento a questo col_list nelle colonne di analisi.
dtLUB= vlistbox(dt<< Tabulate(
Change Item Label( Statistics( Max, " " ) ),
Show Control Panel( 0 ),
Add Table(
Column Table( Analysis Columns( :Date ), Statistics( Max ) ),
Column Table(
Analysis Columns(
<FONT color="#FF0000">È necessario inserire col_list qui in qualche modo</FONT>
),
Statistics( Max )
),
Row Table( Grouping Columns( :Entity) )
),
SendToReport(
Dispatch(
{},
"Tabulate",
OutlineBox,
{Set Title( "PM Counter Summary as of: "|| TimeStamp )}
)
),
));Questo dovrebbe funzionare
dtLUB= vlistbox(dt<< Tabulate(
Change Item Label( Statistics( Max, " " ) ),
Show Control Panel( 0 ),
Add Table(
Column Table( Analysis Columns( :Date ), Statistics( Max ) ),
Column Table(
Analysis Columns(
eval( col_list )
),
Statistics( Max )
),
Row Table( Grouping Columns( :Entity) )
),
SendToReport(
Dispatch(
{},
"Tabulate",
OutlineBox,
{Set Title( "PM Counter Summary as of: "|| TimeStamp )}
)
),
));