I tried to explain this in an earlier post, but I think I made it too complicated, so I'll try to ask in a more simple manner:
I have 3 related tables: CLIENT, PROGRAM and SUBSCRIPTIONS (the junction table). I created a report grouped first by PROGRAM, then by CLIENT with SUBSCRIPTIONS in the detail section. Each client can have more than 1 SubscriptionID for the PROGRAM. I am trying to calculate the number of CLIENTS in the program, and every "count" or "sum" expression I try returns a count of the SUBSCRIPTIONS, not a count of the CLIENT.
For example, for a PROGRAM there are 3 CLIENTS, and 4 SUBSCRIPTIONS. That means one of the clients has 2 SUBSCRIPTIONS. When I create the field in the PROGRAM footer and enter the expression:
=Count([ClientID])
With ClientID being the foreign key in the SUBSCRIPTIONS table.
It always returns a value of 4. When I view the report, there clearly are only 3 CLIENTS. What gives???