Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 282 Oracle Analytics and AI News
- 59 Oracle Analytics and AI Videos
- 16.3K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 108 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
How to use current date in a parameter
Hello,
I am building some workbooks using OAC and OAS. I understand I can use system parameters as current date but how can I create a user defined parameter that is current date-3 (3 days ago) for example. I know I can easily create a calc to return current date and or current date -3 but instead of using calc as the filter I wanted to pass the parameter in my filter control and default the dates to what I wanted. For current date it's not a problem but I don't know how to do the same for current date 3 days ago.
ultimately, I want to be able to bind those parameters to my data set columns so the initial value gets populated correctly.
Thanks
Syed
Answers
-
Hi Syed, Thanks for posting your question.
You can create a new date parameter that defaults to the current date minus three days, set the Initial Value to the Logical SQL query, something like below:
SELECT TIMESTAMPADD(SQL_TSI_DAY, -3, CURRENT_DATE) FROM "Subject Area"
you can then use this parameter the way you want in your workbook, this would return date minus three days.
Hope this helps!
3 -
I am not sure if it is supported but it will be interesting to see if it is possible, please share if you are able to come up with a solution. thanks
0 -
Very helpful.
Thanks for sharing @Aman Jain-Oracle!
0


