문제

I have a column name Amount whose values are sometimes like 400(300) and hence the data type is string in Crystal report.

Now i wish to do summation of Amount Column.How to do that?

the Sum(FieldName) forumla does not work because it is string. I, no way can convert it into numeric..

Let me know if any inputs required.

Thanks..

도움이 되었습니까?

해결책

Create a new formula in your report like so:

if (IsNull({Testing.Amount}) or not IsNumeric({Testing.Amount}) or {Testing.Amount} = "")
Then 0 
Else
ToNumber({Testing.Amount})

And display the formula on the report.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top