Reporting Services - substract two weeks
I have some reports. I need to set default values for parameters -2 last weeks I have query "=DatePart("ww", Fields!DataZgoszenia.Value)" and I don't know how to substract 2 last week Some ideas?
June 11th, 2012 4:37am

Hi There Please try this one =DateAdd("d",-14,today()) Many thanks Syed Qazafi Anjum Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2012 4:46am

DATEADD(WEEK, -2, #8/18/2011#)Best Regards,Uri Dimant SQL Server MVP http://www.dfarber.com/microsoft-solutions/mssql-server.aspx http://www.dfarber.com/computer-consulting-blog.aspx http://sqlblog.com/blogs/uri_dimant/
June 11th, 2012 4:48am

Hi URi I think it might be like this in SSRS =DateAdd("ww",-2,today()) Many thanks Syed
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2012 5:01am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics