Categories
- All Categories
- Oracle Analytics Learning Hub
- 17 Oracle Analytics Sharing Center
- 17 Oracle Analytics Lounge
- 224 Oracle Analytics News
- 44 Oracle Analytics Videos
- 15.8K Oracle Analytics Forums
- 6.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 84 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations 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
1 -
Thanks @Rich Merkel . I will try the steps and revert to you on the outcome.
Thanks for the detailed steps.
1