﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Reporting Services / Reporting Services 2008 Development  / expression / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 04:45:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: expression</title><link>http://www.sqlservercentral.com/Forums/Topic986345-1633-1.aspx</link><description>Hi,Custom code gives u more accurate results in your requirment pinky.Veeren.</description><pubDate>Wed, 22 Sep 2010 01:37:41 GMT</pubDate><dc:creator>veeren4urs</dc:creator></item><item><title>RE: expression</title><link>http://www.sqlservercentral.com/Forums/Topic986345-1633-1.aspx</link><description>Thanks for Replying me.</description><pubDate>Thu, 16 Sep 2010 16:42:45 GMT</pubDate><dc:creator>cpinky01</dc:creator></item><item><title>RE: expression</title><link>http://www.sqlservercentral.com/Forums/Topic986345-1633-1.aspx</link><description>Try this instead[quote]=IIF(Fields!Records_Included.Value = 0, "", IIF(Fields!Interview_Completed.Value/Fields!Records_Included.Value = 0, "", Fields!Interview_Completed.Value/Fields!Records_Included.Value))[/quote]Or if you use this kind of calculation a lot, many of us do you could go to Report&amp;gt;&amp;gt;Report Properties and choose the Code tab and put something like this function in there:[code="other"]Public Function DivideBy(ByVal Exp1, ByVal Exp2) If Exp2 = 0 Then DivideBy = "" Else: DivideBy = Exp1/Exp2 End IfEnd Function[/code]Then in your SSRS expression you would put[code="other"]=code.DivideBy(Fields!Interview_Completed.Value, Fields!Records_Included.Value)[/code]and it would all work out just fine.  PS.  I found this function code either on this site or elsewhere on the internet.  I found it extremely useful and it is now part of my report template.</description><pubDate>Thu, 16 Sep 2010 07:16:28 GMT</pubDate><dc:creator>Daniel Bowlin</dc:creator></item><item><title>RE: expression</title><link>http://www.sqlservercentral.com/Forums/Topic986345-1633-1.aspx</link><description>Hello, thats what i wrote. but i needed something different.it is like this.when the denominator is zero it is displaying "Nan"i dont wnat this way in the report.I have an expression like this in ssrs. It display nothing when(Fields!Survey_Completed.Value)/(Fields!Email_Invite_Sent.Value)=0But and value when the result of this is some value. But I wanted to have nothing whne the denominator is zero.Can anyone help me with this?The expression that I have now is this which does not displays what I want.=iif((Fields!Survey_Completed.Value)/(Fields!Email_Invite_Sent.Value)=0," ",(Fields!Survey_Completed.Value)/(Fields!Email_Invite_Sent.Value))thank you</description><pubDate>Wed, 15 Sep 2010 16:27:40 GMT</pubDate><dc:creator>cpinky01</dc:creator></item><item><title>RE: expression</title><link>http://www.sqlservercentral.com/Forums/Topic986345-1633-1.aspx</link><description>[quote]=IIF(Fields!Interview_Completed.Value/Fields!Records_Included.Value = 0, "", Fields!Interview_Completed.Value/Fields!Records_Included.Value)[/quote]</description><pubDate>Wed, 15 Sep 2010 13:31:38 GMT</pubDate><dc:creator>Daniel Bowlin</dc:creator></item><item><title>expression</title><link>http://www.sqlservercentral.com/Forums/Topic986345-1633-1.aspx</link><description>Hi,In one column I am calculating this.=Fields!Interview_Completed.Value/Fields!Records_Included.ValueThis is the percentage.When this is 0% IT HAS TO BE BALNK. MEANS IT SHOULD NOT SAY 0%. How can we write an expression in ssrs for this?Thank you</description><pubDate>Wed, 15 Sep 2010 08:52:25 GMT</pubDate><dc:creator>cpinky01</dc:creator></item></channel></rss>