Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 211 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
How to implement NOT EXISTS functionality in OBIEE 12c

Hi Experts,
I am using "CREATE DIRECT DATABASE QUERY" option from OBIEE 12c to meet my requirement.
My requirement : I need to identify the customers who bought product X1 from product X category and not bought product Y1 from product Y category.
The data of Product X1 and product Y1 is available in the same column called Product
The data of Product X category and product Y category is available in the same column called Product Group
Now, I would like to find out how the same requirement (NOT EXISITS) could be met through RPD modelling or OBIEE Analytics.
Please advise!!
Thanks in Advance
Answers
-
-
Hi Berg,
Thanks for your reply. I knew the concept of saving group of objects together and reusing them. I usually do this for saving group of filters. Could you please advise how could I make use of this doc to implement NOT EXISTS functionality or to meet the requirement.
0 -
As I said: selection steps.
They work with three simple operators which allow you to make any combination conceivable: Keep only, Ad, Remove.
- start with all customers
- keep customers who have bought Product 1
- add customers who have bought Product 2
With hard filters which actually result in cutting off the data stream in the WHERE clause you can never get that same result.
Selection steps are applied to the full data stream and do NOT do a hard WHERE product = 1 for example.
0 -
Hi Berg,
Sorry to bother you. I still not able to visualize, how this would serve my need.
This is the sql query I am using. Please advise
SELECT CUSTOMERS FROM TXN T1
WHERE PRODUCT_GROUP IN 'X' AND PRODUCT IN {'X1', 'X2'} AND DOC_DT BETWEEN TO_DATE ('2018/02/01', 'YYYY/MM/DD')
AND TO_DATE ('2018/02/28', 'YYYY/MM/DD')
AND
NOT EXISTS
(SELECT CUSTOMERS FROM TXN T2
WHERE PRODUCT_GROUP IN 'Y' AND PRODUCT IN {'Y1', 'Y2'} AND DOC_DT BETWEEN TO_DATE ('2018/02/01', 'YYYY/MM/DD')
AND TO_DATE ('2018/02/28', 'YYYY/MM/DD')
AND T1.CUSTOMER = T2.CUSTOMER);
0 -
Hi,
In addition,The values for the product and product group are dynamically selected by the user from prompts which are built based on the product master. I am capturing these with in the presentation variables and passing the same in the sql query.
Please suggest
0