如何计算水晶报告中的公式总和? [英] How to calculate sum of Formula Filed in crystal report?

查看:90
本文介绍了如何计算水晶报告中的公式总和?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用水晶报告。

因为我已经采取了一些填充(@tot)。



而且我想要取@tot的总和,当我想把@tot的总和当作Sum({@ tot})它给出错误。



我用过这个公式

{VendarMaster.kapat} * Sum({SankalanBufMaster.bufmilk},{SankalanBufMaster.venno})





这是我报告的格式,



名称AVG TOt

ZYX 100 100



ABC 150 150



总计150




但是这里我要总数= 250



如何计算总和of @Tot?



谢谢,

Hi Everyone,

I am using crystal report.
In that i have taken sum of some filled (@tot).

And also i want to take sum of the @tot, when i want to take sum of the @tot as like Sum({@tot}) it gives error.

Tot i used this formula
{VendarMaster.kapat}*Sum ({SankalanBufMaster.bufmilk}, {SankalanBufMaster.venno})


Here is the format of my report,

Name AVG TOt
ZYX 100 100

ABC 150 150

Total 150


But here i want the total=250

How to calculate sum of @Tot?

Thank You,

推荐答案

使用总结字段 [ ^ ]


创建像这样的公式。并将其放在组头中



共享数字变换;

共享numbervar grandtot;

共享numberVar ftot;

tot:= {VendarMaster.kapat} * Sum({SankalanBufMaster.bufmilk},{SankalanBufMaster.venno});

grandtot:= grandtot + tot;

ftot:= grandtot-tot;

ftot;
Create a formula like this.and place it in group header

Shared numbervar tot;
Shared numbervar grandtot;
Shared numberVar ftot;
tot :={ VendarMaster.kapat}*Sum ({SankalanBufMaster.bufmilk}, {SankalanBufMaster.venno});
grandtot :=grandtot + tot;
ftot:=grandtot-tot;
ftot ;


这篇关于如何计算水晶报告中的公式总和?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆