Hi,
I am having an issue where I have to count the number of families according to a certain program code. The information I have looks like this.
Family# program Code $amount
X 2 $$$
Y 1 $$$
X 1 $$$
Z 1 $$$
W 2 $$$
This is what the report should look like.
Code Family count Total Amount
1 3 $$$
2 1 $$$
As you can see the family 'X' should only be counted once under code '1'
However in the actual report, it is being counted twice under both code 1 and 2 :
Code Family count Total Amount
1 3 $$$
2 2 $$$
I have grouped by {code}, and added running totals to count the families. This is just an example, in the actual report there will be many codes and I have to count the family only once according to the assigned priority. I cannot suppress the extra records because I need all the data to calculate the {Total Amount}.
Is there any way to accomplish this?
Thanks
gkw123