This recipe demonstrates how to calculate the accumulative summation within composite datasource.
Steps taken:
- Create a composite datasource (Summation.ds). Drag and drop test.ds into it as the beginning of the flow.
- Add a “Derivative”. Add the following column in the “Derivative > Derived” tab:Name=Sum, Type=Float, Value=sum += test
- Enter the following script into the “Script” tab of the composite datasource:var sum = 0;
To download the necessary files for this recipe, refer to the attached ZIP file.
Sample.zip