求和“金额”的公式水晶报表中的列

发布于 2024-10-08 18:35:21 字数 180 浏览 0 评论 0原文

我在 CR 中有一个列名称为“金额”。我需要对该列求和。

我创建了一个新公式并尝试了 sum( { MycolumnName} ) 它说

“此处需要数字字段或货币金额字段”

是否有任何方法可以在公式本身中应用转换。

I have a column name as "Amount" in CR. I need to sum that column.

I created a new formula and tried sum( { MycolumnName} ) and it says

"A number field or currency amount field is required here"

Is there any way to apply conversion in formula itself.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

木槿暧夏七纪年 2024-10-15 18:35:21

当您只需选择列并转到菜单并选择插入摘要插入小计插入总计<来创建汇总字段时,为什么要创建公式/代码>取决于您的需要?您可以将汇总字段作为小计放在组部分中,或作为总计放在报表页脚中。

如果需要在公式中应用转换,可以使用 CCur,如下所示:有关

sum( CCur({ MycolumnName}) ) 

Crystal Reports 中转换类型的更多信息,请访问 此处

Why create a formula when you can just create a summary field by selecting your column and going to the menu and selecting Insert Summary, Insert Subtotal or Insert Grand Total depending on your needs? You can place the summary field in a group section as a subtotal, or in the report footer as a grand total.

If you need to apply a conversion in the formula, you can use CCur like this:

sum( CCur({ MycolumnName}) ) 

More information on converting types in Crystal Reports can be found here.

黯然#的苍凉 2024-10-15 18:35:21

将 .xsd 页面中 xs:element 中的 MycolumnName 列的类型 xs:string 更改为 xs:decimal

Change the type xs:string to xs:decimal of the column MycolumnName in xs:element in .xsd page

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文