简体   繁体   English

通过日期的SSRS表达式计数记录

[英]SSRS Expression count records with date passed

In SSRS I am trying to create an expression that counts all records that have been scheduled for the end of today. 在SSRS中,我试图创建一个表达式,该表达式对计划到今天结束的所有记录进行计数。 How can is this possible? 这怎么可能呢?

=Count(IIF(Fields!scheduledendValue.Value <= Today, 1, 0))

Many thanks for help 非常感谢您的帮助

Your logic is good, but your formula isn't. 您的逻辑很好,但您的公式却不好。 The "Today" function requires open and closing parentheses. “今天”功能需要用括号括起来。 Try this: 尝试这个:

=Sum(IIF(Fields!scheduledendValue.Value <= Today(), 1, 0))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM