你好,
我正在尝试为我们的小组创建新的记分卡,
计分卡似乎工作得很好,我只是想为用户添加只有第一个分组列(:所有者)的选项,如果他按下相关按钮,则会出现净分组列(: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 ) ) )
)
)
);