简体   繁体   中英

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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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