[英]How to get the Start Date of the Week, if I have the Week number of the year in SSRS Report Builder 3.0?
I used the following expression to get the week number of the year: 我使用以下表达式获取一年中的第几周:
=DATEPART("ww", Fields!Date.Value)
How to get the start date of that week number in SSRS Report. 如何在SSRS报告中获取该周编号的开始日期。 I have this in my report 我的报告里有这个
And I want it to achieve this. 我希望它能够实现这一目标。
Your expression should look like this: 您的表情应如下所示:
= DATEADD("d", - DATEPART(DateInterval.Weekday,Fields!Date.Value) +1,Fields!Date.Value)
Explanation: From the date field, subtract the day of week number to get the first date of week 说明:从日期字段中减去星期几,以获取星期的第一个日期
Check it over here. 在这里检查。 Probably you will find the answer. 可能您会找到答案。
https://www.experts-exchange.com/questions/28695333/SSRS-Get-date-from-Week-Number-and-day-number.html https://www.experts-exchange.com/questions/28695333/SSRS-Get-date-from-Week-Number-and-day-number.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.