在交叉表中包含公式字段
您好,我有一个很长的公式字段,我想将其包含为交叉表报告摘要字段。但是,在定义公式字段后,我在交叉表屏幕中看不到它。如何包含它? 这是我的公式字段
WhilePrintingRecords;
numberVar rt;
numberVar layMdp;
numberVar totMdp;
rt=Round(({Command.GENGNPIAMT}/{Command.TOTALGNP})*100,2);
layMdp:={Command.GENPREMMDP};
totMdp:=(layMdp)*Truncate((rt/100),4);
此外,如果我将此公式字段放在详细信息部分中,它会显示零。为什么它不计算任何东西?我喜欢它根据每个交叉表列计算值。
Hi i have a long formula field which I would like to include as the cross tab report summary field. However after I define the formula field I don't see it in my crosstab screen. How to include it ?
Here is my formula field
WhilePrintingRecords;
numberVar rt;
numberVar layMdp;
numberVar totMdp;
rt=Round(({Command.GENGNPIAMT}/{Command.TOTALGNP})*100,2);
layMdp:={Command.GENPREMMDP};
totMdp:=(layMdp)*Truncate((rt/100),4);
Also if I place this formula field inside details section, it shows a zero. Why is it not calculating anything ? I like it to calculate values as per each cross-tab column.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在设置变量,但公式本身没有返回任何内容。如果你想返回totMdp的值,只需在最后一行后面添加:
You're setting the variables but the formula itself is not returning anything. If you want to return the value of totMdp, just add it after the last line: