Crystal Reports - Count Formula

一世执手 提交于 2019-12-01 04:32:23

I think the best option here would be to use a RunningTotal rather than a formula.

Create a new Running Total and enter the following options:

  • Fields to summarize: {StatusType}
  • Type of Summary: Count
  • Evaluate: Check Use a Formula and press the formula button.
  • In the formula box enter {StatusType} = "Submitted"
  • Reset: Check Never

I don't have Crystal installed on this machine at the moment but I think that should do it. Then you can just repeat the process for the Rejected status type.

Assuming you want to display the count of records for each status at the end of each group, you don't need to create a formula. Simply:

  • Right-click on the status field.
  • Select Insert > Summary... from the menu.
  • Select Count as the summary type, and group: status as the summary location within the Insert Summary dialog.
  • Click OK at the bottom of the Insert Summary dialog.

This will insert a count of status in the group footer for the status group. You may want to drag it to a more convenient position and/or reformat it.

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