When I'm using units (INTEGER), the formula works.
=IIF(Fields!QuantityRS.Value<>0 AND Fields!QuantityRSLY.Value<>0,(Fields!QuantityRS.Value-Fields!QuantityRSLY.Value)/Fields!QuantityRSLY.Value,0)
When I'm using $ (DOUBLE), the formula gives me an error.
=IIF(Fields!PriceRS.Value<>0 AND Fields!PriceRSLY.Value<>0,(Fields!PriceRS.Value-Fields!PriceRSLY.Value)/Fields!PriceRSLY.Value,0)
Error below:
[rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox46.Paragraphs[0].TextRuns[0]’ contains an error: Attempted to divide by zero.Any ideas? TIA.
Image may be NSFW.
Clik here to view.