Adding Sum of fields of two tables giving strange result in Crystal Report

泄露秘密 提交于 2019-12-14 03:13:56

问题


I am using SAP crystal reports for Visual studio.

I have two tables (TableA, TableB). with fields PriceA, PriceB.

TableA Field : PriceA ={20,40,40};

TableB Field : PriceB ={50.40,60};

I have created a formula in my main report Formula1 = Sum(TableA.PriceA) + Sum(TableB.PriceB)

But instead of getting result as @Formula1 =250. It is giving the incorrect result like '1050' (not exact).

How can i get a correct result in this case.


回答1:


I would suggest inserting a summary of each field (right-click on field -> Insert -> Summary) and then creating a sum of the two using a formula.



来源:https://stackoverflow.com/questions/20692465/adding-sum-of-fields-of-two-tables-giving-strange-result-in-crystal-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!