Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Any simple way to calculate the running total/average as a calculated field while loading the data from the tables.
Following discussion is helpful
Zahoor
You can use the peek function in your load script to look at the previous row loaded.
This script code should give you inspiration.
AA :
LOAD * INLINE [
Value
1
2
3
4
5
6
7
8
];
BB:
load
[Value] ,
[Value] + if(peek(RunningTotal) > 0 , peek(RunningTotal) , 0) as RunningTotal
resident AA
;
drop table AA ;
Best Regards, Bill