Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Conditions check in SSRS

Author  Topic 

sanghavi17389
Starting Member

26 Posts

Posted - 2012-05-18 : 08:44:24
I am making a report in ssrs.
Now I have a requirement to add a column which will show the difference between two columns(means Subtraction).
before that I must check the values of those two fields. If they are not null then only do subtraction.
How can I do this?

harshal sanghavi

edit: moved to proper forum

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-05-19 : 15:00:41
do IIF expression like

=IIF(IsNothing(Fields!FirstField.value) Or IsNothing(Fields!SecondField.value),<your default value>,Fields!FirstField.value-Fields!SecondField.value)

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sanghavi17389
Starting Member

26 Posts

Posted - 2012-05-21 : 09:48:47
thanx

harshal sanghavi
Go to Top of Page
   

- Advertisement -