Analytics, using loop

Hello All,
I have a table with Id employees, gender, department type, …I want to count for men and women number of employees by department service
I would like to use a loop,
What would be the best approach ?

Many thanks

https://nodepit.com/node/org.knime.base.node.preproc.groupby.GroupByNodeFactory
is the best approach.

Ok, many thanks for reply!