私は以下を使用して列リストを生成しています。列リストはさまざまですが、名前には常に「X_Clean」が含まれます。
col_list = dt<<GET column="" names="">0, i--, if(!contains(col_list[i], "X_Clean"), remove from(col_list, i); ) );</GET>
現在、集計ボックスを作成しようとしていますが、分析列でこの col_list を参照する方法がわかりません。
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">ここに何らかの方法でcol_listを挿入する必要があります</FONT>
),
Statistics( Max )
),
Row Table( Grouping Columns( :Entity) )
),
SendToReport(
Dispatch(
{},
"Tabulate",
OutlineBox,
{Set Title( "PM Counter Summary as of: "|| TimeStamp )}
)
),
));これでうまくいくはずだ
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 )}
)
),
));