I need to group by employee and sum each year (column), to be reflected in a new DT with totals per column. Can this be done with only official activities?
Thank you! It worked fine for the 92 columns I have to sum. However, I didn’t mention that I also have some other columns in my table I don’t need to sum (text, for example, the employee name) and when I run this it’s not showing that data… can we adjust it to show those columns also?
In this case, we need to know which data should be kept (first row of the group etc.) and which column should be sum or not. If you can share specific sample for it, we might be able to show a sample expression.
Thanks,
Using the same example, let’s assume we have two more columns I don’t want to sum: Employee location and Employee Name. I don’t need those to group since location may be different, but I don’t care (it can reflect the first value, for example, it can reflect Paris for Marie even though she was in Paris and London…). I need only to use the ID to group, sum by year/employee and keep the other two columns.
In this case, we need to decide which row is kept in each group (especially Employee location). If the first row is kept, the following expression will work.