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
 Development Tools
 Reporting Services Development
 Removing 'NaN' and 'Infinity' from field

Author  Topic 

akhlaq768
Starting Member

12 Posts

Posted - 2009-01-20 : 10:58:07
I have created a report, but i notice that i get 'NaN' and 'Infinity' in my % column

how do i remove this from view, i.e. to return a blank field

below is the formula used to populate the % column



=(SUM(iif(Fields!Year.Value = "2008/2009", 1, 0)) - SUM(iif(Fields!Year.Value = "2007/2008", 1, 0))) / SUM(iif(Fields!Year.Value = "2007/2008", 1, 0))  



visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-20 : 11:57:56
try like this
=(SUM(iif(Fields!Year.Value = "2008/2009", 1, 0)) - SUM(iif(Fields!Year.Value = "2007/2008", 1, 0))) / IIF(SUM(iif(Fields!Year.Value = "2007/2008", 1, 0))>0,SUM(iif(Fields!Year.Value = "2007/2008", 1, 0)),Nothing)

Go to Top of Page
   

- Advertisement -