Hello @Harsha3,
If an input dataset is provided to the Snap. In such cases, the number of documents in the output is equal to the number of documents in the input. And, I think that was the reason why you received values incremented depending on the number of input documents.
I assume that you can achieve the desired output by moving the sequence snap in the child pipeline and passing “total_Days” as a pipeline parameter to the child pipeline.
Then, you can use the parameter in sequence snap(Number of documents field) in the child pipeline.
Also, I am attaching two sample pipelines(parent and child), hoping that will helps you for completing the task.
Pipe1_2020_06_22.slp (4.1 KB) → Parent pipeline
Pipe2_2020_06_22.slp (6.4 KB) → Child pipeline
Regards,
Spiro Taleski