我有一个列名称,其值有时像400(300),因此数据类型是Crystal Report中的字符串。

现在,我想对金额列进行总结。如何做?

sum(fieldName)论坛LA不起作用,因为它是字符串。我,无法将其转换为数字。

让我知道是否需要任何输入。

谢谢..

有帮助吗?

解决方案

在您的报告中创建一个新公式:

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

并在报告中显示公式。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top