简体   繁体   English

如何在水晶报表中获得字段“折扣”的总和

[英]How to get the sum of field 'discount' in crystal report

I am doing a crystal report.. In which there is a field Discount I am not getting the sum of that field while right click->Summery->Sum.我正在做一个水晶报告..其中有一个字段折扣我没有得到该字段的总和,而右键单击->汇总->总和。 I am getting other field like OrderAmount... In crystal report all data are coming.But not getting the sum for Discount.It is just showing the count of rows as Discount.我得到了像 OrderAmount 这样的其他字段......在水晶报告中,所有数据都来了。但没有得到折扣的总和。它只是将行数显示为折扣。 Pls help...请帮助...

Try using formula section of Crystal Report.尝试使用 Crystal Report 的公式部分。 Create a formula for finding the sum.创建一个求和的公式。 Use the formula in place of Summary.使用公式代替摘要。
It might be look like Formula=Sum(val({ReportField}). Change the Crystal Syntax to BasicSyntax from dropdownbox on top.它可能看起来像 Formula=Sum(val({ReportField})。从顶部的下拉框中将 Crystal Syntax 更改为 BasicSyntax。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM