如何统计 crystal 报告中的选定记录

How to count selected records in crystal reports

假设我有新旧学生的记录。我想做的是这个

Count({StudentInformation.Surname}) Where {StudentInformation.Status} = "old"

有什么想法吗?

创建公式 X:

if {StudentInformation.Status} = "old" then 1 else 0

然后你可以总结这个公式:

sum({@X})