[How To] Get Cumulative Sum of Salaries Of Employees

Design a mapping to load the cumulative sum of salaries of employees into target table

Consider Source data with Employee_name and Salary as follows.
Vishal,100
Shubham,200
Abhishek,100
Vinay,500
Monika,800

We wish to find out the cumulative sum of Salary at each level. The output should look like this.
Vishal,100,100
Shubham,200,300
Abhishek,100,400
Vinay,500,900
Monika,800,1700

We shall use a simple Expression transformation to go on adding the current salary with previous one. The Mapping and Expression for this are as follows: