Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 42 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 277 Oracle Analytics and AI News
- 54 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Idea Labs
- Oracle Analytics and AI User Groups
- 103 Oracle Analytics and AI Trainings
- 19 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Filter with an OR condition
I have two fields: Field A and Field B
I want to pull all records, which may have value 'SPLTAG' in either of the two columns.
How do I create a combination filter across two columns ?
Answers
-
Hi Pavan,
Welcome to Oracle analytics community.
Please try below:
SELECT * FROM table tab
WHERE (tab.A LIKE '%SPLTAG%' OR tab.B LIKE '%SPLTAG%' )
Thanks.
0 -
Tx for your inputs, Mandeep.
Field A and Field B are from different subject areas
Is there a way to get the OR condition on the Criteria tab of OTBI ?
0 -
Hi,
For analysis, in filter area, click on "And"
and it will update to "Or"
Or you can try creating complex query with two subject areas (or two of same subject area), just need to make sure your fields align (sometimes helpful too if creating pivot table views) see like below after creating analysis using first subject area, click the icon in upper right to add 2nd subject area into the complex analysis.
using two subject area (invoice number from each, and field A/B from each)
filter on field A in first subject area
filter on field B from second subject area
3 -
Thanks @Rich Merkel . I will try the steps and revert to you on the outcome.
Thanks for the detailed steps.
1






