嘿!
我有一个脚本,它从数据表中创建摘要列。它从某些列中收集最大值和初始值。我想创建一个新列来计算最大值和初始值之间的差值。我有 18 种不同的测量需要这个,所以我想自动完成这个。我有一个脚本来创建和适当命名列。一切都设置好了。
我需要帮助的是如何将公式添加到所述差异列。问题是我不知道如何在一个 Eval 函数中运行多个评估。
我目前拥有的内容如下。我还考虑过创建列,然后返回添加公式,但这似乎遇到了同样的问题。
//I have a List T_List with all the measurement names<BR /><BR />For(i = 1, i <= 18, i++,
Eval(
Substitute(
Expr( New Column(T_List[i] || " Temperature Difference", Numeric, Continuous, Format("Fixed Dec", 2)
Formula( Column(i) + Column(i+18) ) // Always adding 2 columns that are 17 columns apart, but unclear how to specify those columns with multiple evaluations
),
Expr( _name_ ), parse(":" || T_List[i])
)
)
);
);