我使用水晶报告,我的报告有2个字段:man = 3,woman = 4。我想计算%男人?与公式字段。我尝试计数({person.sex},“man”)* 100 / count({person.sex})但显示错误“此处需要字段”?救救我!
答案 0 :(得分:0)
取2个运行总变量,放入组页脚或适当的部分(最好在任何页脚 - 报告页脚上显示总百分比,而不是分组)并根据需要给出条件或检查下面的链接。
Using a Running Total in a Formula in the Details Section of a Crystal Report
How to sum running total field for each group in crystal report?
请查看此链接
http://crystalreportsblog.com/crystal-reports-running-totals/
http://www.experts-exchange.com/Database/Reporting/Crystal_Reports/Q_28044491.html