Get Started: AI Resources for Oracle Cloud HCM – Go Here
Progress with Redwood: Redwood Resources for Oracle Cloud HCM - Go Here
Progress with Redwood: Redwood Resources for Oracle Cloud HCM - Go Here
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