Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS expression replace NULL with another field value

I need to write an SSRS expression to check and replace NULL field value with another field value. Can this be done?

like image 390
Nite Cat Avatar asked Oct 07 '13 21:10

Nite Cat


People also ask

How do you handle NULL values in SSRS expression?

If we are getting the data from a Database, we can use ISNull or COALESCE function to replace Null values with values we would like. But if we want to replace the Null/Blank values in SSRS Report, we need to use IIF and Isnothing functions in expressions.

Can parameters accept NULL values in SSRS?

In SSRS a multi-value parameter cannot include a NULL value, so users can't filter the data for NULL values.

What does IsNothing return in SSRS?

SubTotal. Value) is Null (the IsNothing() function that it is in returns a True if it is Null and a Fales if it isn't), then a zero is returned by the expression; otherwise the SUM(Fields! SubTotal. Value) is used.

Is NULL in SSRS report?

How to check if a parameter is NULL in SSRS? The IsNothing() function returns True if the Paramter value is NULL , otherwise it will return FALSE.


Video Answer


1 Answers

=iif(isNothing(Fields!FV1.Value), Fields!FV2.Value, Fields!FV1.Value) 
like image 198
Anup Agrawal Avatar answered Sep 22 '22 17:09

Anup Agrawal