I have defined an expression in one of my cells from my dataset1
. My Design window and I have to repeat for each month's cells but I'm getting an #ERROR when I click on the PREVIEW
tab in SSRS.
My thought is if the ActivityMonth value = 1
and the Type value = "PIF"
then display the value in the Data column.
=IIF(Fields!Activity_Month.Value = 1 AND Fields!Type.Value = "PIF", Fields!Data.Value, 0)
I got this WARNING from SSRS:
[rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox1471.Paragraphs[0].TextRuns[0]’ contains an error: Input string was not in a correct format.
But it ran successfully.
And
operator ist writtenAnd
. The&
operator is the one for concatenating strings, soFields!Activity_Month.Value = 1 & Fields!Type.Value = "PIF"
will most likely result in something like"TrueFalse"
which cannot be evaluated as a boolean expression. – Wolfgang Kais