October 15, 2015 at 10:32 am
Hello Everyone,
I have used the the following code to calculate the Median values for employee salary in SSRS.
***************************************
Dim values As System.Collections.ArrayList
Function AddValue(ByVal newValue As Decimal)
If (values Is Nothing) Then
values = New System.Collections.ArrayList()
End If
values.Add(newValue)
End Function
Function GetMedian() As Decimal
Dim count As Integer = values.Count
If (count > 0) Then
values.Sort()
GetMedian = values(count / 2)
End If
End Function
**************************************
Everything looks fine in the development. However, after deploying the report to the server and run the report in Internet Explore, all median values are showing up as 0.00. I do not get.
Please help.
Thanks
October 15, 2015 at 11:01 am
Is calculating the median in the SQL Query that feeds the report an option?
-- Itzik Ben-Gan 2001
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply