Categories
- All Categories
- Oracle Analytics Learning Hub
- 31 Oracle Analytics Sharing Center
- 22 Oracle Analytics Lounge
- 252 Oracle Analytics News
- 45 Oracle Analytics Videos
- 16.1K Oracle Analytics Forums
- 6.3K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 93 Oracle Analytics Trainings
- 16 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
OAC - OBIEE, custom dashboard prompt
I am trying to create a custom SQL dashboard prompt in OAC-OBIEE.
The first SQL fetches Year as a value and sorts the dataset descending. Works just fine.
The default SQL fetches the same but I added a WHERE clause filtering to current year.
e.g.
SELECT "DATASET NAME"."Target Year"
FROM XSA('MyLogin@somewhere.com'.'DATASET NAME')
WHERE "DATASET NAME"."Target Year" = YEAR(current_date)
This does not error however, when executing, the prompt has all Years select and the expected default selection is 2023 not all the years selected.
Answers
-
Hi @User_OZYJB ,
Replace the default SQL as follows and it should work as expected:
select DISTINCT YEAR(CURRENT_DATE) from XSA('MyLogin@somewhere.com'.'DATASET NAME')0 -
Perfect -thank you. Worked as expected. For whatever reason I was thinking the way I wrote it worked before. Before being 5 years ago on OBI 12 prem.
Thanks again Federico.
Kris
0
