将变量列表制成表格我使用以下内容来生成列表,该列表会有所不同,但名称中始终有一个“X_Clean”:
col_list = dt<<GET column="" names="">0,i--,如果(!包含(col_list[i],“X_Clean”),从(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 )}
)
),
));