Icon

Only positive moving aggregation

Method 1: Line by line Method 2: Recursive loop DataRead lineby lineDo the cumulativeaggregation, andapply rule if thecumulatie aggregation< 0, then replace with 0Node 10Initialize lastcum status to 0Update last cumstatus to be usedin next iterationConvert the cumagg to variableNode 15Generate IDfor each lineRename toLineIDNode 19Get the <0Get the LineIDof the first <0Save it asa variableSet the agg forthe LineIDto 0Separatethe "good" (top)from the"bad" (bottom)Remove aggcolumn to goback into the loopNode 26Clean up Table Creator Chunk Loop Start Math Formula Loop End Variable Creator VariableExpressions Table Rowto Variable Moving Aggregation Counter Generation Column Rename RecursiveLoop Start Row Filter GroupBy Table Rowto Variable Rule Engine Row Splitter Column Filter Recursive Loop End Column Filter Method 1: Line by line Method 2: Recursive loop DataRead lineby lineDo the cumulativeaggregation, andapply rule if thecumulatie aggregation< 0, then replace with 0Node 10Initialize lastcum status to 0Update last cumstatus to be usedin next iterationConvert the cumagg to variableNode 15Generate IDfor each lineRename toLineIDNode 19Get the <0Get the LineIDof the first <0Save it asa variableSet the agg forthe LineIDto 0Separatethe "good" (top)from the"bad" (bottom)Remove aggcolumn to goback into the loopNode 26Clean up Table Creator Chunk Loop Start Math Formula Loop End Variable Creator VariableExpressions Table Rowto Variable Moving Aggregation Counter Generation Column Rename RecursiveLoop Start Row Filter GroupBy Table Rowto Variable Rule Engine Row Splitter Column Filter Recursive Loop End Column Filter

Nodes

Extensions

Links