Categories
- All Categories
- 4 Oracle Analytics Sharing Center
- 12 Oracle Analytics Lounge
- 189 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.4K Oracle Analytics Forums
- 5.9K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 65 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Return First Non Null value

HI All
I am working on a report and I need to return planner code at item level.
Typically planner codes are set at Item - Org combinations.
But I am creating one report aggregated at item level.
There are few orgs where there is no planner code. But OBIEE should return first Non Null Planner code.
Can this be done?
Please see example below.
Item - Org - Planner Code
1234 - ABC - PLN1
1234 - DEF - PLAN2
1234 - GHI - NULL
1234 - JKL - NULL
Now in the report, we should display ANY of the following values -
Item - Planner Code
1234 - PLN1
1234 - PLAN2
Thanks in advance for any input on how to achieve this.
Regards
Answers
-
Hi,
First thing first: a report as in BI Publisher report or an analysis in OBIEE Answers? The name defines the tool, the tool drives the answer you look for ... ( (c) Christian )
Assuming you mean an OBIEE analysis:
If you set an aggregation like MAX or MIN on your "Planned Code" you get just what you look for.
As you look for any value except a NULL ("the first not null" doesn't mean much in a database), all you need is to aggregate that column and problem solved.
0 -
CORRECT ANSWER !!!
Thanks
Somehow I was unable to flag this as CORRECT ANSWER.
0 -