I would like to exclude the weekend in year 2016, but I need the weekend in year 2015 for my calculations. I did used this expression in my query:
((DATEPART(dw, IntervalDate) + @@DATEFIRST) % 7) NOT IN (0,1)
But this excludes in every year the weekend. How can I only exclude Saturday, Sunday in 2016?
I use SSRS, and I have been thinking to exclude the weekends for the year 2016 in the filter option, but it takes a lot of time and maybe it is possible to do it in the query.