Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 213 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
Substring and Locate

Hi
It is in OBIEE 12
I am using the substring and locate functions to find a specific word in a text field and it is fine but when that word I am looking for does not exist in the text, it is capturing the first word in the text...how can I have it so when that word I am looking for is not in the text then return blank?
Thanks
Joe
Answers
-
What's the function you're using now?
You can always simply put a CASE WHEN... around the whole thing and check whether the result of your substr has a length of 0 for example.
0 -
I was going to try to use the substr and locate etc to find a specific word among a paragraph which I was able to do in OBIEE 12C but it seems it is not working for me in OAC DV..so I decided to write a case statement to say : case when "column that has a text" like '%##DIS%' THEN '##DIS' else '' end...will that work? it seems working, do you think I might face issues?
0 -
Yes that's exactly the way to write it.
0 -
Thank you Christian, really appreciate it.
0