Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,I want to create a new field in the load script that adds up values. But only up to a certain range (same RMNr)
table1: LOAD AufS, Endtermin, RMNr, fert, Ressource, Teil, HBA, BABf, Solltermin, Deckungsmenge, Bedarfsmenge, TerminFROM........(txt, utf8, embedded labels, delimiter is ';', msq);
final:
Noconcatenate LoadRMNr, AufS, Endtermin, fert, Ressource, Teil, HBA, BABf, Solltermin, Deckungsmenge, Bedarfsmenge, Termin, If(Previous(RMNr) = (RMNr),(Deckungsmenge-Bedarfsmenge+If(rowno()=1,0,Peek(Stock)))) as Stock
Resident table1
Order by Teil
;
Drop table table1;
the source table