title: SSRS Summing a group average
body: <p>I need to sum the averages within row groups in SSRS 2008 and have not found a solution I can work with.</p>
  
  <p>Required output:</p>
  
  <p><img src="https://i.stack.imgur.com/SmSmi.jpg" /></p>
  
  <p>Any help would be appreciated; I have tried several custom code options, including:</p>
  
  <pre><code>public dim totals as int32 = 0
  
  public function Setavg( value As int32)
      totals = totals + value
      return value
  end function
  </code></pre>
  
  <p>(This one aggregates the subtotal values within the group)</p>