I observed a strange thing that I don't understand. I have a report with two tablixes. I have two "NoYes" parameters on the dialog.
And now I have this situation in the report:
1. show tablix 1 when parm1="Yes" and parm2 ="No".
2. show tablix2 when parm1="Yes" and parm2="Yes"
Tablix1 has expression for showing:
=IIf(Parameters!parm1.Value = "Yes" and Parameters!parm.Value = "No", false, true)
Tablix2 contains such expressions for showing:
=IIf(Parameters!parm1.Value = "Yes" and Parameters!parm.Value = "Yes", false, true)m
In this case, I can display the report with tablix1. On the other hand, if I select parm1="Yes" and parm2="Yes" on the dialog Im getting this error:
The expression referenced a non-existing field in the fields collection.
but when I change the expressions for hidden:
tablix1:
=IIf(Parameters!parm1.Value = "Yes" and Parameters!parm.Value = "Yes", true, false)
tablix2:
=IIf(Parameters!parm1.Value = "Yes" and Parameters!parm.Value = "No", true, false)
I can display the report with tablix2, and again Im getting an error when I want to display the report with tablix1..
Can anyone suggest me what I am doing wrong and how to solve it?
Many thanks.