Try this RDL expression for calculating the previous week:
=Today.AddDays(-7)
If you want to do this directly in the query, you will need to look for date related functions for the particular database you are working with. For SQL Server queries you would use the DateAdd function: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_da-db_3vtw.asp
-- Robert
|||thanks a lot!!! sql
No comments:
Post a Comment