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.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
YTD Evaluate Code for Dashboard Prompt
Summary
Dashboard Prompt YTD defaultsContent
Hi, I am working on a Dashboard prompt to default to YTD to filter all results on the dashboard.
I have used a previously created prompt that has a SQL code for rolling 12 months as default but unsure what to change in the code for the values to default Year to Date instead of rolling 12 months.
Here is the current SQL code:
SELECT
EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER, "Submission Dates"."Hired Date" ,'YYYY-MM')
FROM "Recruiting"
WHERE
EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER, "Submission Dates"."Hired Date" ,'YYYY-MM')
BETWEEN EVALUATE('TO_CHAR(ADD_MONTHS(%1,-11),%2)' AS CHAR,CURRENT_DATE,'YYYY-MM') AND
Tagged:
2