Quantcast
Viewing all articles
Browse latest Browse all 2791

Median Values in SSRS

Hello Everyone,I have used the the following code to calculate the Median values for employee salary in SSRS.***************************************Dim values As System.Collections.ArrayListFunction AddValue(ByVal newValue As Decimal)If (values Is Nothing) Thenvalues = New System.Collections.ArrayList()End Ifvalues.Add(newValue)End FunctionFunction GetMedian() As DecimalDim count As Integer = values.CountIf (count > 0) Thenvalues.Sort()GetMedian = values(count / 2)End IfEnd Function**************************************The median values look fine in the development. However, after I deployed 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

Viewing all articles
Browse latest Browse all 2791

Trending Articles