need to do a sum of values with out double summing the duplicates.. (I am stuck)
Example..
Table has 4 fields.
Server name, file system, installed, used.
There are duplicates in the server name field and the file system field.
I want to sum up the total file system installed and used on each server, but, if there are duplicate entries in the file system field I only want to count the first one.
Example:
server 1 | filesys1 | 5 | 1
server 1 | filesys2 | 4 | 2
server 1 | filesys2 | 4 | 2
server 1 | filesys3 | 8 | 6
would give as a total:
server name | installed | used
server 1 | 17 | 9
because filesystem 1 adds 5 and 1, filesystem 2 adds 4 and 2 only once because I only want to count the first time, file system 3 adds 8 and 6.
(dont need the names of the file systems in the total because its a total and not an individual listing)
Any ideas? I can use the find duplicate query wizard to get a report that looks like:
server 1 | filesys1 | 5 | 1
server 1 | filesys2 | 4 | 2
server 1 | filesys3 | 8 | 6
But I can't figure out how to do the sum.
Example..
Table has 4 fields.
Server name, file system, installed, used.
There are duplicates in the server name field and the file system field.
I want to sum up the total file system installed and used on each server, but, if there are duplicate entries in the file system field I only want to count the first one.
Example:
server 1 | filesys1 | 5 | 1
server 1 | filesys2 | 4 | 2
server 1 | filesys2 | 4 | 2
server 1 | filesys3 | 8 | 6
would give as a total:
server name | installed | used
server 1 | 17 | 9
because filesystem 1 adds 5 and 1, filesystem 2 adds 4 and 2 only once because I only want to count the first time, file system 3 adds 8 and 6.
(dont need the names of the file systems in the total because its a total and not an individual listing)
Any ideas? I can use the find duplicate query wizard to get a report that looks like:
server 1 | filesys1 | 5 | 1
server 1 | filesys2 | 4 | 2
server 1 | filesys3 | 8 | 6
But I can't figure out how to do the sum.