Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要根据日期范围内返回的记录数过滤报告。即如果上个月的记录少于 x,则不显示该组。我可以成功地使用 Count() 函数过滤整个数据库,但我不知道如何让它只考虑日期范围内返回的记录(通过参数设置)。
我假设您是按日期分组的,并且日期中没有时间,所以我{YourTable.YourDate}将从这里开始引用该字段。
{YourTable.YourDate}
您可以将自定义抑制公式添加到您的组页眉、详细信息和组页脚,如下所示:
Count ({YourTable.YourDate}, {YourTable.YourDate}) <= 1
是硬编码的1,但你可以传入一个参数,任何计数小于或等于传入数字的组和细节都将被抑制。
1