I have a report with one group called Counties. This group has a filter.
![]()
I added code to produce the totals for Prior, Current and DistinctCount:
Public Shared Dim grandTotal1 as Decimal = 0
Public Shared Dim CountyTotal1 as Decimal = 0
Public Function AddTotal1(ByVal b AS Decimal) AS Decimal
grandTotal1 = grandTotal1 + b
CountyTotal1 = CountyTotal1 + b
return b
End Function
Public Function GetCountyTotal1()
Dim ret as Decimal = CountyTotal1
CountyTotal1 = 0
return ret
End Function
Public Function GetGrandTotal1()
Dim ret as Decimal = grandTotal1
grandTotal1= 0
return ret
End Function
Public Shared Dim grandTotal2 as Decimal = 0
Public Shared Dim CountyTotal2 as Decimal = 0
Public Function AddTotal2(ByVal b AS Decimal) AS Decimal
grandTotal2 = grandTotal2 + b
CountyTotal2 = CountyTotal2 + b
return b
End Function
Public Function GetCountyTotal2()
Dim ret as Decimal = CountyTotal2
CountyTotal2 = 0
return ret
End Function
Public Function GetGrandTotal2()
Dim ret as Decimal = grandTotal2
grandTotal2= 0
return ret
End Function
Public Shared Dim grandTotal3 as Decimal = 0
Public Shared Dim CountyTotal3 as Decimal = 0
Public Function AddTotal3(ByVal b AS Decimal) AS Decimal
grandTotal3 = grandTotal3 + b
CountyTotal3 = CountyTotal3 + b
return b
End Function
Public Function GetCountyTotal3()
Dim ret as Decimal = CountyTotal3
CountyTotal3 = 0
return ret
End Function
When it runs, it gives me this:
![]()
This works fine. But now I need to hide the details on the counties. I just need the line with the 15, 32 and the 9.
I highlighted the group row, right clicked -> Row Visibility and changed it to Hide. But when I do this, my results are three zeros.
I am at a loss now on how to just show the totals. Does anyone have any suggestions for me to try?
cpemtp1