嗨,
从我创建的主数据集 N个堆叠数据表基于 N种不同的参数类型并存储它们 stkdata 。
对于每个堆叠数据表,我想创建一个不同的数据表新栏目() 公式将根据字段分隔的独特长度和/或性质进行调整。然后,我将绘制每个堆叠数据集的图形并引用新列中的数据。目前,图表已设置为参考:数据和:标签。
- 一世能够获得相同的公式,以便在数据表中应用得很好并绘制图形。
- 一世不能非常清楚如何正确构建if else场景或缩小最合适的工具(Regex,Pat Match或其他)。
部分代码:
If( N Items( found_list ) > 0,
//dt << group columns( one_group, found_list );
stkdata = dt << Stack(
columns( As List( found_list ) ),
Keep( :reference_param_one, :reference_param_two),
Output Table( "Stacked " || one_group ),
); // close stacking of columns
colreference = Column( "Label" );
If(
stkdata = Current Data Table();
Pat Match( colreference, "param_group_one" ),
stkdata << New Column( "Limit_one",
"Character",
Formula( Num( Word( 2, Word( 27, :Label, ":" ), "=" ) ) )
);
Pat Match( colreference, "param_group_two" ),
stkdata << New Column( "Limit_two",
"Character",
Formula( Num( Word( 2, Word( 75, :Label, ":" ), "=" ) ) )
);
Pat Match( colreference, "param_group_three" ),
stkdata << New Column( "Limit_three",
"Character",
Formula( Num( Word( 2, Word( 29, :Label, ":" ), "=" ) ) )
);
stkdata << Oneway( Y( :Data ), X( :Label ) )
); // close If N Items (found_list) > 0