简体   繁体   中英

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. Pls help...

Try using formula section of 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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