Page 1 of 1

How to calculate max in DS

Posted: Thu Mar 17, 2011 4:43 am
by tanaya.deshpande@tieto.co
I have 7 employees coming in a single stream whose salary is different on Monday ,Tuesday and Wednesday.
Now I want to calculate
1) total salary of each employee.for three days..... after that
2)the employee who has max salary

How can I impliment this in DS

Posted: Thu Mar 17, 2011 4:45 am
by GJ_Stage
Please use aggregator stage.

Posted: Thu Mar 17, 2011 10:56 am
by soumya5891
1. First need a dummy col with any value say 1 you can do it in a transformer stage or col generator stage

2. Need a aggregator stage where you determine total salary of the employee

2. Now use a sort stage and sort the salary in descending order and then remove duplicate on the basis of dummy col

You will get the highest salary

Posted: Fri Mar 18, 2011 4:03 am
by tanaya.deshpande@tieto.co
Thanks a lot :D

Posted: Fri Mar 18, 2011 4:49 am
by devesh_ssingh
you can put resolve :)