Forum Discussion
Hi tlikarish,
Appreciate your reply but that does not solves my query.
Below is the data:-
employee_id,salary
10, 1000
20, 2000
30, 3000
40, 5000
Expected O/p
employee_id,salary,Cumulative salary
10, 1000,1000
20, 2000,3000
30, 3000,6000
40, 5000,11000
Hope now its clear , Also i tried to Google for variable in mapper but there was no comments or article on it.
Can we not create a variable in mapper? because these can be done in different ETL tools using variable.
- tlikarish7 years agoEmployee
The aggregate snap has a concat function that should concatenate the values instead of sum them. I think that maybe closer to what you’re trying to achieve.
You could also take a look at the Group By Field snap, but that may be too different from how you’d like to transform the data.
In regards to variable creation, there is nothing like that in the mapper. You can transform document properties using expressions and write them to new properties, but there aren’t any variables you can use.