Question

I'm struggling with my expression I'm trying to remove any values of the WebSoldPriceForFmvRatio and LastFMV that would have the isPriorMonthAppraised value of zero. I've attempted several attempts at using a combination of iif and sum statements but they all return with errors. Am I using the IFF statement correctly or do I need to use another conditional? Code:

   =Code.Divide(SUM(
                   IIF(
                       Fields!isPriorMonthAppraised.Value=0
                      ,Fields!WebSoldPriceForFmvRatio.Value,0))
               , SUM(
                   IIF(Fields!isPriorMonthAppraised.Value=0
               ,Fields!LastFMV.Value,0)))
Was it helpful?

Solution

  1. Your WebSoldPriceForFmvRatio is not in the same dataset as your table/Matrix's dataset.

    If you need to access it from a different dataset you would need to either use aggrgate function or Lookup function or redesign datasets.

  2. Also remember Field Names are case sensitive. It must match the field name under the dataset.

    WebSoldPriceForFmvRatio is different from WebSoldPriceForFmvRatiO or WEBSoldPriceForFMVRatio

OTHER TIPS

I believe the correct spelling is "IIF", not "IFF", so maybe start there.

Additionally, are you expecting 0 (as in a numeric 0), or do you need to test for NULL values? If you need to test for NULL, use the IsNothing() function.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top