Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/crystal-reports/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Crystal reports 水晶报表:就其他列中的值汇总一列_Crystal Reports_Sum - Fatal编程技术网

Crystal reports 水晶报表:就其他列中的值汇总一列

Crystal reports 水晶报表:就其他列中的值汇总一列,crystal-reports,sum,Crystal Reports,Sum,我想总结一下crystal report中的一列(第1列)与第2列中的值 EG: Column1 Column2 10 SR 5 SR 20 ZR 当Column2的值为'SR'时,我想对column1求和。 输出应为“15”,而不是“35”。 如何实现它?假设第1列和第2列是表中的字段 if {tablefield1} = 'SR' then

我想总结一下crystal report中的一列(第1列)与第2列中的值

     EG:

     Column1        Column2

       10            SR
        5            SR
       20            ZR
当Column2的值为'SR'时,我想对column1求和。 输出应为“15”,而不是“35”。
如何实现它?

假设第1列和第2列是表中的字段

 if {tablefield1} = 'SR' then {tablefield2} else 0 
报表或组的汇总和