是否可以使用數據過濾器和列切換器重新計算控製圖?如果是這樣 - 怎麼樣?
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} )
);
如果要使用數據過濾器,則過程測量需要採用堆疊格式(同一列中的過程測量)。 如果要使用列切換器,則需要將過程測量拆分為單獨的列。