【问题标题】:How to get the Start Date of the Week, if I have the Week number of the year in SSRS Report Builder 3.0?如果我在 SSRS Report Builder 3.0 中有一年的周数,如何获取一周的开始日期?
【发布时间】:2017-11-14 02:32:09
【问题描述】:

我使用下面的表达式来获取一年中的周数:

=DATEPART("ww", Fields!Date.Value)

如何在 SSRS 报告中获取该周数的开始日期。I have this in my report

我想要它to achieve this.

【问题讨论】:

标签: reporting-services ssrs-2012


【解决方案1】:

你的表达应该是这样的:

= DATEADD("d", - DATEPART(DateInterval.Weekday,Fields!Date.Value) +1,Fields!Date.Value)

说明: 从日期字段中,减去星期几得到星期的第一个日期

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-06-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-14
    • 1970-01-01
    相关资源
    最近更新 更多