Hello
trying to put a formula that simply counts (increments) based on the occurences of the same asset_num in time.
I like this formula to be calculated one time and then either suppress eval OR even delete formulae.
Any help will be appreciated.
below, I tried suppress eval(false) to let the formula calculate and then suppress eval(true) to suppress it...
it did not work.
thanks
::MyCntDwn2 = Function( {dt}, {Default Local},
col=New Column("Countdown",Numeric,"Continuous",Format( "Best", 12 ));
col<<Set Formula(
If( Row() > 1,
If( :asset_num == Lag( :asset_num, 1 ),
Lag( :Countdown, 1 ) + 1,
1
),
1
)
);
col << suppress eval(false);
col << suppress eval(true);
);