I have developed a report in vb.net/rdlc. what i want is to have a count of studentID for all male students(sex coded as 1) in grade 1 to be in a textbox, and a count of all female students in grade 1(sex coded as 0)to be in another textbox.
The query i have for the report is generating the data as below;
Sex grade studentID
1 1 2009105012410059
1 1 2009105012410060
0 1 2009105012410063
0 1 2009105012410065
here is what i have in rdlc
=iif(Fields!Sex.Value = 1 and Fields!grade.Value = 1,count(Fields!studentId.Value),0)
only the false part is being executed i dont know why. Would please assist me to establish where i might go wrong