문제

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)))
도움이 되었습니까?

해결책

  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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top