Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

OTBI prompt set default values for date between first and last day of current year

I know that I can set a default for a prompt as todays date using the SQL expression

select current_date from "Workforce Management - Worker Assignment Real Time"

I think the following formula will convert todays date into the first day of the current year, although the syntax may need to be tweaked:

TRUNC(current_date,'YEAR')

and that a formula like this will get the last day of the year:

TIMESTAMPADD(SQL_TSI_YEAR,1,current_date)-1

I tried combining the expressions but it was not successful. Where am I going wrong? It must be possible to be able to have dynamic date prompts to enable reports to be scheduled.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!