Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

#Error when using =Iif statement

$
0
0
I am trying to do basic Reporting Services, because that is all that I know....so if the answer has to do with code and such, please be specific as to what I need because I have not learned that yet :)I am doing the following=iif(sum(Fields!Deqsum.Value) = 0,0,(SUM(Fields!Deqsum.Value)/SUM(Fields!Totsum.Value)))I am getting an #Error when the DeqSum = 0.00 and the Totsum = 0.00I have validated that there are NO nulls in my tables, just zeros. How do I work around this so it gives me a 0% instead of #Error?Thanks so much for any help!Marissa

Viewing all articles
Browse latest Browse all 2791

Trending Articles