你好,
我正在嘗試為我們的小組創建新的記分卡,
計分卡似乎工作得很好,我只是想為用戶添加只有第一個分組列(:所有者)的選項,如果他按下相關按鈕,則會出現淨分組列(:buckets),他們可以選擇這樣做嗎?
另外,似乎 ROUND() 函數在此設置中不起作用,還有其他選擇嗎?
感謝您的支持!
Tabulate(
FP = "mm";
dt_all = Open( FP || "\mm.csv", invisible );
dt_all:supplier_ww << Data Type( Character );
Change Item Label(
Grouping Columns( :buckets( "All" ), "All" ),
Grouping Columns( :supplier_ww( "All" ), "All" ),
Grouping Columns( :main_route( "All" ), "All" ),
Grouping Columns( :test_name( "All" ), "All" ),
Grouping Columns( :supplier_chamber( "All" ), "All" )
);,
Show Control Panel( 0 ),
Order by count of grouping columns( 0 ),
Add Table(
Column Table(
Grouping Columns( :supplier_ww, :chart_type ),
Add Aggregate Statistics( :supplier_ww, :chart_type ),
Statistics( Mean ),
Analysis Columns( Transform Column( "score", Formula(round( (:Total_Good_Chamber / :Total_Wfr_Chamber),2 ) ) ) )
),
Row Table(
Grouping Columns( :owner, :buckets, :main_route, :test_name, :supplier_chamber ),
Add Aggregate Statistics( :owner, :buckets, :main_route, :test_name, :supplier_chamber )
)
),
Local Data Filter(
Conditional,
Add Filter(
columns( :owner, :chart_type, :supplier_ww, :buckets, :main_route, :test_name, :supplier_chamber ),
Display( :owner, Size( 93, 442 ), Check Box Display ),
Display( :chart_type, Size( 98, 82 ), Check Box Display ),
Display( :supplier_ww, Size( 93, 442 ), Check Box Display ),
Display( :buckets, Size( 202, 962 ), Check Box Display ),
Display( :main_route, Size( 110, 1282 ), Check Box Display ),
Display( :test_name, Size( 171, 2582 ), Check Box Display ),
Display( :supplier_chamber, Size( 157, 2822 ), Check Box Display )
)
)
)
我假設您想要為 Tablulate 平台輸出中的某些單元格著色。製表沒有著色功能。要處理此問題,您必須執行類似“<< 製作成數據表”的操作來創建數據表,然後為數據表中的單元格著色。
沒有直接執行您要求執行的操作的選項,但是,通過使用一點 JSL,我認為您可以完成您想要的操作。下面是一個簡單的示例,應該可以讓您朝著您的解決方案邁進。它允許用戶按下表格上的按鈕,以強制顯示更改
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
nw = New Window( "Tabulate",
hlb = H List Box(
bb = Button Box( "Push to See Ages",
If( bb << get button name == "Push to See Ages",
tab << delete;
hlb << append(
tab = Tabulate(
Show Control Panel( 0 ),
Add Table(
Column Table( Analysis Columns( :height ) ),
Row Table( Grouping Columns( :sex, :age ) )
)
)
);
bb << set button name( "Push to Remove Ages" );
,
tab << delete;
hlb << append(
tab = Tabulate(
Show Control Panel( 0 ),
Add Table(
Column Table( Analysis Columns( :height ) ),
Row Table( Grouping Columns( :sex ) )
)
)
);
bb << set button name( "Push to See Ages" );
)
),
tab = Tabulate(
Show Control Panel( 0 ),
Add Table( Column Table( Analysis Columns( :height ) ), Row Table( Grouping Columns( :sex ) ) )
)
)
);