Categories
- All Categories
- 75 Oracle Analytics News
- 7 Oracle Analytics Videos
- 14K Oracle Analytics Forums
- 5.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 40 Oracle Analytics Trainings
- 59 Oracle Analytics Data Visualizations
- 2 Oracle Analytics Data Visualizations Challenge
- 3 Oracle Analytics Career
- 4 Oracle Analytics Industry
- Find Partners
- For Partners
How to do MAX Date Logic less than Prompted AsOfDate in Analysis
Summary
Trying to get the maximum Salary Change Date in OTBI Analysis
Content
I am trying to convert a filter to SQL to get the maximum Salary Change Date that is less than or equal to a prompted AsOfDate in an OTBI Analysis. Here is the filter I am using:
"Compensation - Salary History Details Real Time"."Salary Details"."Salary change date" =
SELECT MAX("Compensation - Salary History Details Real Time"."Salary Details"."Salary change date")
FROM "Compensation - Salary History Details Real Time"
WHERE "Compensation - Salary History Details Real Time"."Salary Details"."Salary change date" <= '@{AsOfDate}{@{system.currentTime}[YYYY-MM-DD]}'
I'm getting error getting drill information and wondering how I can fix this? I have attached the catalog.
Thank you!
Brenda
Comments
-
First: What is the error that you are getting?
Second: By setting VARIABLE PARAM_EFFECTIVE_DATE to AsOfDate it will return the latest salary change record on or before that date so I don't think you need any Max
If your error is related to Date Format then try MM/DD/YYYY in your prompt. Thanks
Regards,
Rashid
0