Crystal reports 如何计算Crystal报表中的重复值?

Crystal reports 如何计算Crystal报表中的重复值?,crystal-reports,crystal-reports-2008,crystal-reports-2010,Crystal Reports,Crystal Reports 2008,Crystal Reports 2010,我在Crystal Reports中使用Visual Studio 2010制作了一份报告,我想要实现的内容显示在这个屏幕截图中。 ! 在报告中,我想计算免费患者的数量,请帮助我,我是编程新手,非常感谢您的帮助 If {FeeStatus} = "Free" then 1 else 0 增加细节。创建组页脚或报表页脚的汇总。创建一个变量,如: numbervar cnt := 0; if({FeeStatus} = "Free") then cnt := 1 else cnt := 0;

我在Crystal Reports中使用Visual Studio 2010制作了一份报告,我想要实现的内容显示在这个屏幕截图中。 !

在报告中,我想计算免费患者的数量,请帮助我,我是编程新手,非常感谢您的帮助

If {FeeStatus} = "Free" then 1 else 0

增加细节。创建组页脚或报表页脚的汇总。创建一个变量,如:

numbervar cnt := 0;
if({FeeStatus} = "Free") then cnt  := 1 else cnt := 0;
现在将此变量放置在detail部分并抑制它,因为不需要在报告中显示

现在,这取决于您是想在报表页脚中显示总和,还是有一个组页脚

Add Summary > and choose the varibale created and suppressed earlier (cnt)
现在,根据您的需要放置此摘要


注意:你玩Crystal玩得越多,你就越能理解它的流程。

请给我一些解决方案,请任何人帮助我。你可以使用CospringsGuy提供的解决方案谢谢你的帮助:)