title: Attemted to divide by zero error in SSRS Expression
body: <p>I have below Expression which I am using in my report </p>
  
  <pre><code>            =IIF((Sum(Fields!Starts.Value)-Sum(Fields!Withdrawn.Value))=0, Nothing,
  (Sum(Fields!Starts.Value)-Sum(Fields!Withdrawn.Value))/(Max(Fields!Year1Starts.Value)))
  </code></pre>
  
  <p>When I run the report I am getting below message and appears as #Error</p>
  
  <pre><code>    Warning 1   [rsRuntimeErrorInExpression] 
      The Value expression for the textrun ‘Textbox110.Paragraphs[0].TextRuns[0]’ contains an error: 
  Attempted to divide by zero.
  </code></pre>
  
  <p>I tried this but getting same error: </p>
  
  <pre><code>    =IIF((Sum(Fields!Starts.Value) - Sum(Fields!Withdrawn.Value)) = 0, Nothing, 
  (Sum(Fields!Starts.Value) - Sum(Fields!Withdrawn.Value))/ 
  IIF(Max(Fields!Year1Starts.Value)=0,1,Max(Fields!Year1Starts‌​.Value)))
  </code></pre>
  
  <p>Can anybody please help?</p>
  
  <p>Aruna</p>