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
 IIF condion in SSRS

Author  Topic 

goodman2253
Yak Posting Veteran

88 Posts

Posted - 2012-05-21 : 08:46:50
=Round((Sum(Fields!NetStdTimeInSeconds.Value)*100)/(Sum(Fields!total_time.Value)),2)

Using This sometimes i get the result as infinity so i want to add a condition if the result is infinity then it should show 0

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-05-21 : 21:39:13
=Round((Sum(Fields!NetStdTimeInSeconds.Value)*100)/IIF(Sum(Fields!total_time.Value)>0,Sum(Fields!total_time.Value),Nothing)),2),

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

Go to Top of Page
   

- Advertisement -