連接/儲存並評估公式手動連接兩個表格時,可以選擇“儲存並評估公式”,以便評估新日期或附加日期中的公式。
在 JSL 中,此選項不可用,只有「保留公式」會抑制評估。
dt_1 << Concatenate(dt_2,Append to first table,save and evaluate formulas(1)); // this is not possible
我知道你可以使用:
dt_1:mycol << Suppress Eval( 0 );
dt_1:mycol << Eval Formula(1);
為了獲得與手動選項相同的結果,但我必須使用公式對每一列進行搜尋和執行此操作。
是否有隱藏功能或計劃將其作為選項包含在 Concatenate 中?
回覆:連接/儲存並評估公式我可以跟踪數據操作並發現“問題”
我建立現有資料表的子集,並清除鎖定公式列並抑制評估的所有資料。
然後用資料填充表,但公式保持為空。
我連接多個相同的表(附加到第一個表)。 如果主表具有禁止的評估,則也不會評估串聯表。
允許對子集進行評估解決了問題。
dt_2 = dt << Subset(Output Table( "temp" ),Selected Rows( 0 ),Rows( [1] ),Selected columns only( 0 ),copy formula(1),link to original data table(0),Suppress formula evaluation( 0 ));
Concat dt_2 隨後啟用了公式計算。
回覆:連接/儲存並評估公式感謝您的快速回复,您的示例工作正常,我什至將列預設為“抑制評估”,並在連接後對其進行評估。
所以我的表有一個公式,但它沒有執行,並且在連接後仍然被抑制。 我發現早些時候提到這可能是一個時間問題,表沒有時間評估列並且不知何故卡住了。 我會進一步調查。
回覆:連接/儲存並評估公式據我所知,Keep Formulas 不會抑制評估。
嘗試這個腳本並查看其中的公式行號在結果表中進行評估。
dt1 = New Table( "One Table",
Add Rows( 10 ),
New Column( "Row no",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Row() )
)
);
dt2 = New Table( "Another Table",
Add Rows( 10 ),
New Column( "Row no",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Row() )
)
);
Data Table( "One Table" ) <<
Concatenate(
Data Table( "Another Table" ),
Keep Formulas,
Create source column
);
