SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Development Tools
 Reporting Services Development
 IIF condion in SSRS
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

goodman2253
Yak Posting Veteran

83 Posts

Posted - 05/21/2012 :  08:46:50  Show Profile  Reply with Quote
=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

India
47023 Posts

Posted - 05/21/2012 :  21:39:13  Show Profile  Reply with Quote
=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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000