Hi all,
I have a report that pulls information about products via SQL query into a QueryTable.
The columns are: ID_Number, Test, Group, Weight, and Status.
e.g.
I want to find the total weight of product that failed. In this case, the weight would be 70. Even though a single product failed three tests, I don't want to triple count the weight.Please Login or Register to view this content.
How do I sum the values counting only the distinct ID_Numbers?
Using DSUM(database, field, criteria) as DSUM(QueryTable, Weight, Fail) gives me a weight of 90.
Any help is appreciated!
Bookmarks