Cumulative profitability curve


I would like to know how we can do a cumulative profitability curve on Knime with the cumulative net income on the y axe and on the x axe, the number of customers. I could compute the cumulative net income through a java snippet simple.


How can i do this cumulative profitability curve ?

I had a similar problem with dates though.

y-axis = cumulative income

x-axis = dates

After sorting the rows with ascending time, I used a Java Snippet node with code:


double sum=0.0;  // in the global variable space


sum = sum + $value KW$;
return sum;

-- Rosaria

Also, there is now a template in in Interactive R-Snippet node for doing cummulative arithmetic.