I have an expression in a table that checks if there was a return value.
If the query returns empty or null
I want to set the value to 0.
=IIF(IsNothing(Fields!DndCount.Value),0,Fields!DndCount.Value)
But if the query returns empty IsNothing()
does not work.
I have tried this code and it worked for me.
You can also try to use the
IsMissing
expression of the field,like this:
Alternative solution to avoid using expressions, change the cell format to
#,##0
in properties. Easier then to pair it up with count or sum.Try this:
Since
IsNothing
will return aTrue
orFalse
value you need to set your expression as:Hope it helps.