Quantcast
Viewing all articles
Browse latest Browse all 217177

Sum of values that have been duplicated

Hello there! 

 

I have an odd problem that I can't seem to wrap my mind around. I have a table formatted like this:

 

IDEmployeeHoursCause MaterialsMaterial Hours
F544.070Employee 11Fire Truck 11
F544.070Employee 11Fire Truck 21
F544.070Employee 22Fire Truck 31
F544.070Employee 22Fire Truck 41
F544.070Employee 31Fire Truck 51
F544.070Employee 31Fire Truck 61
F544.070Employee 42Fire Truck 71
F544.070Employee 42Fire Truck 81
F544.070Employee 53Fire Truck 91
F544.070Employee 51Fire Truck 101
F544.070Employee 61Fire Truck 111
F544.070Employee 61Fire Truck 121

 

This report is used to track employees, hours spent on the job, what job they responded to, and the materials used on the job. Unfortunately there are ALWAYS more materials corresponding to a jon (ID) number so it formats like the about, i.e. creating more information.  It can be duplicates, triplicates, etc etc depending on how many materials are used on the job.

 

So when I want to sum the hours for the employee on a particular job it is not correct. Is there a way to get a distinct sum based off of the ID number?


Viewing all articles
Browse latest Browse all 217177

Trending Articles