I have a report that filters an sql query with a date. I want to have this report in two versions. One that goes on in a schedule (it uses the actual month) and another one that prompts for the date to be filtered.
One is supposed to run every month by itself and the other one will be used in a few manual runs.
Can I do this without having more than one report?
Thanks
Create a prompt called pPeriodType with two possible values: ‘Select Date Range’ or ‘Current Month’
Then in your report filter you do something like this:
Now when you pick ‘Current Month’, it will show current month regardless of the dates you pick. When you pick ‘Select Date Range’ it will filter based on the selected dates. You just need to work out the expression for start and end dates depending on the current date. What database are you running this on?