0
votes

I am using the following expression in one of my report fields.

=Fields!Value.Value*(Fields!DutyRate.Value/100)

This works as exprected as long as there is a valid value in the Fields!DutyRate.Value.

My problem is that the Fields!DutyRate.Value can contain non numerical values such as "Free".

This means any rows with the word "Free" in them causes an #Error. This is OK as such but I would like to get SSRS to display something other than #Error. In fact I would like to to display "F" instead.

Many thanks

1

1 Answers

0
votes

You can use an IIF (inline if statement) and the IsNumeric function.

Syntax: IIF(<condition>,<true part>,<false part>)

=IIF(IsNumeric(Fields!DutyRate.Value),Fields!Value.Value*(Fields!DutyRate.Value/100),"F")

SSRS Expression Examples

Visual Basic Functions (SSRS expressions use VB functions)