Private m_total As Double Private m_count As Integer Public Function CalculateAverage(average As Double, inTotalCostAcre as Boolean) As Double If Not inTotalCostAcre Then ' Average of TotalCostAcre Return average Else If inTotalCostAcre Then ' Subtotal of inTotalCostAcre m_total = m_total + subtotal m_count = m_count + 1 Return subtotal Else ' Average of Subtotal Dim avg as Double avg = m_total / m_count m_count = 0 m_total = 0 Return avg End If End Function
|CRM 2011 User, email and phone number for SSRS||4||63|
|Conditionally suppress a subreport in a list control (SSRS/ReportBuilder 3.0)||1||255|
|SSRS 2008 r2 - finding the selection Screen||3||110|
|Is there any way to copy all SSRS reports/datasets/data sources to new server?||3||51|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
10 Experts available now in Live!