I am working with a report where I want to use an expression to control row visibility in Report Builder. The expression will determine if a name appears on a list or not. The conditions are as follows:
If the student received a Grade F they do not appear on the list. This part is easy: =IIF(Fields!Grade.Value = "F", True, False)
However the list conditions are more complicated.
If the student receives a Grade F they do not appear on the list.
However, if the student receives an F (no matter how many) and they get either an A, B, C, D grade they appear on the list.
So my IIF statement is as follows:
=IIF(Fields!Grade.Value = "F", True, IIF(Fields!Grade.Value = "A" OR Fields!Grade.Value = "B" OR Fields!Grade.Value = "C" OR Fields!Grade.Value = "D" AND Fields!Grade.Value = "F",
False, False))
When I run the report, I get no errors and the report opens. However, the expression does not seem to be working. Does anyone have any suggestions as to why my logic is not working, but not erroring?