是否可以使用数据过滤器和列切换器重新计算控制图?如果是这样 - 怎么样?
FWIW,这正如我所期望的那样:
NamesDefaultToHere(1);
dt = New Table( "CCB",
Add Rows( 50 ),
New Column( "Y1",
Numeric,
"Continuous",
Format( "Fixed Dec", 12, 3 ),
Formula( Random Normal( 0, 1 ) )
),
New Column( "Y2",
Numeric,
"Continuous",
Format( "Fixed Dec", 12, 3 ),
Formula( Random Normal( 3, 1 ) )
),
New Column( "Group",
Numeric,
"Nominal",
Format( "Best", 12 ),
Formula( Random Integer( 1, 4 ) )
)
);
dt << Control Chart Builder(
Size( 535, 453 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :Y1 ) ),
Chart( Position( 1 ), Limits( Sigma( "Moving Range" ) ) ),
Chart( Position( 2 ), Limits( Sigma( "Moving Range" ) ) ),
Local Data Filter(
Add Filter(
columns( :Y1, :Y2, :Group ),
Display( :Group, Size( 149, 56 ), List Display )
)
),
Column Switcher( :Y1, {:Y1, :Y2} )
);
如果要使用数据过滤器,则过程测量需要采用堆叠格式(同一列中的过程测量)。 如果要使用列切换器,则需要将过程测量拆分为单独的列。