简体   繁体   English

按日期过滤报告以显示本周通过电子邮件在SSRS中注册的用户

[英]Filter report by date to show users registered this week through email in SSRS

I have a report with startDate and StopDate as parameters. 我有一个带有startDate和StopDate作为参数的报告。 I also configured smtp settings etc to send a report through email on specified time which is working fine. 我还配置了smtp设置等,以便在指定的时间通过电子邮件发送报告,效果很好。 I am getting the stopDate from today() function but I dont know how to keep the startDate to Monday of the week. 我从today()函数获取了stopDate,但是我不知道如何将startDate保持在一周的星期一。 I need to automatically send report through email containing the number of users registered in this week ie from Monday to Monday on Monday, from monday to tuesday on Tuesday and finally from Monday to Friday on Friday. 我需要通过电子邮件自动发送报告,其中包含本周注册的用户数,即从星期一到星期一,星期一到星期二,星期二,最后是星期一到星期五。 Same patterns in next week. 下周的模式相同。 Thanks. 谢谢。

Please try the expression below: 请尝试以下表达式:

=IIF(Weekday(today())=1,DateAdd("d",-6,today()),DateAdd("d",2-Weekday(today()),today())) = IIF(平日(今日())= 1,使用DateAdd( “d”, - 6,今日()),使用DateAdd( “d”,2-平日(今日()),今日()))

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

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