jklewis
Technical User
- Jul 5, 2012
- 7
I need to know if there is a way to retrieve dates from the Selection Filter and/or the SQL Query that is built from the Selection Filter.
IE:
Selection Filter:
tbl.date IN MonthToDate
SQL Query:
Where tbl.date between '7/1/12' and '7/5/12'
I would like to see if there is a way to make it reusable.
Works for various types of date inputs:
tbl.date = '7/1/12'
tbl.date IN WeekToDateFromSun
tbl.date BETWEEN @date_start AND @date_stop
The reason for this is that the data returned is not always the same dates as requested. IE: Request MTD but may not be data on the 1st... etc.. etc..
Any help would be greatly appreciated.
IE:
Selection Filter:
tbl.date IN MonthToDate
SQL Query:
Where tbl.date between '7/1/12' and '7/5/12'
I would like to see if there is a way to make it reusable.
Works for various types of date inputs:
tbl.date = '7/1/12'
tbl.date IN WeekToDateFromSun
tbl.date BETWEEN @date_start AND @date_stop
The reason for this is that the data returned is not always the same dates as requested. IE: Request MTD but may not be data on the 1st... etc.. etc..
Any help would be greatly appreciated.