I have a very unique question & i have read countless topics on it, not found a correct answer. Please help me in this.
I have a matrix where i'm calculating the count of all Satisfied, Very safistied, neither satisfied nor unsatisfied or very unsatisfied or unsatisfied. Even if the count value is less than 5 i'm using below code to hide the count of 5 .
=(Switch(Count(Fields!Q27_A_1.Value)<5, "*", Count(Fields!Q27_A_1.Value)>5 , Count(Fields!Q27_A_1.Value)))
And i need to count the total of this cell into another cell in row and show their value
But if it contains any "*" values
then total will be "*"
else display = Count(Fields!Q27_A_1.Value).
I have writtten these lines of custom code but not working. : Getting Error : Input String was not in correct format
Public Function SafeConvert(ByVal num As String) As String
Dim s as String
IF IsNumeric(num) <5
Then
Return "*"
Else :
For i as integer = 0 to 4
s += num
Next
Return s
End IF
End Function
At the end, I'm calling this function into that cell using
=Code.SafeConvert(ReportItems!Textbox4.Value)