Overview: I have three fields that I must verify they all are true. If so, then count that record as 1. Do this for every iteration that is true.
If ((EEOCategory_Code = "OAM") and (Ethnic_Group_Code = "H") and (Gender_Code = "F")) return 1. Do this for every 3 fields to be true and sum up the quantity.
EEO Ethnic Gender
YES YES YES
YES NO YES
NO NO NO
Using the above table. I should get a count of 1 returned to be posted to my text box field.
Using the code below,
=Count(IIF((Count(IIF(Fields!EEOCategory_Code.Value = "OAM",1,Nothing))) + (Count(IIF(Fields!Ethnic_Group_Code.Value = "H",1,Nothing))) + (Count(IIF(Fields!Gender_Code.Value = "F",1,Nothing))))
= 3, 1, Nothing))
I get this error
The Value expression for the textrun ‘Textbox76.Paragraphs[0].TextRuns[0]’ has a scope parameter that is not valid for an aggregate function. The scope parameter must be set to a string constant that is equal to either
the name of a containing group, the name of a containing data region, or the name of a dataset. (rsInvalidAggregateScope)
My thought was that each count returns 1 if true. So if I add all my counts, it should sum to 3. If it is 3 report back 1. Count up all the 1's.
What is the error of my ways?
Sincerely, Rick Biggs