Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Dealing with nulls in ssrs.

$
0
0

In my report, I have an expression which is used to pass a parameter to a child report parameter which is set to allow null values. The expression is :

=IIf(Parameters!Lead.Value = "False",Nothing,Fields!Paid.Value)

This expression

The above expression returns values only when Fields!Paid.Value is not blank. Therefore when Fields!Paid.Value is blank I get an error

"the value provided for the report parameter is not valid"

The issues is not in the Parameter!Lead.Value being "True" or "False". The issue is that the Field!Paid.Value only return records when Paid Column is not empty or blank. It fails to return record when value in Field.Paid.Value is blank. The first condition being true, how do I ask Field!Paid.Value to return nothing if empty?

How do I modify my expression to parse these two conflicting issues?

What I want is to be able to return values when the Fields!Paid.Value is blank or when it is null. So at all time when the expression runs corresponding values are returned without the error stated above.

Thanks for helping out.


Zionlite




Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>