I have a count field which supplies a value of 1 for each record in my query. I also have a region field which identifies the record by their geographical location.
I have grouped together all the records, and and am trying to perform the following:
1. Total sum of the count field.
2. Sum of the the count field based on the region field value.
The expression I ham having problems with is:
=IIf(([Region])="West",Sum([Count]),null)
All I am getting is null. However, the expression:
=Sum([Count])
works just fine. Any suggestions as to whazt I am doing wrong?
I have grouped together all the records, and and am trying to perform the following:
1. Total sum of the count field.
2. Sum of the the count field based on the region field value.
The expression I ham having problems with is:
=IIf(([Region])="West",Sum([Count]),null)
All I am getting is null. However, the expression:
=Sum([Count])
works just fine. Any suggestions as to whazt I am doing wrong?