Forum Discussion
Lookupvalue for a Search String in Tabular Model
- Anonymous5 years ago
For those who may stumble upon similar issue -
After a lot of reading everywhere, found the below link and especially in comments.
A combination of a various solutions in comments helped.
Anonymous , that's why we are CAPITALIZING every letter and splitting the column to get the substring seperated.
But splitting cannot be 100%. i.e. I can have spaces in between for the text I need to search.
base ball
Shoulder pad
- Tanushree_Kapse5 years agoImpactful Individual
Anonymous , In that case: Use UPPER(Column_name) to convert every alphabet to uppercase.
And for splitting the column using delimiter for rightmost space-
RIGHT([ITEMS_DESCRIPTION],SEARCH(" ",[ITEMS_DESCRIPTION]),-1)I hope this helps!
- Anonymous5 years agoNot applicable
Thanks Tanushree_Kapse - I'll come back to this later. A priority 2 incident has happened. 😞
Any other thoughts in meanwhile are welcome.
- Anonymous5 years agoNot applicable
Tanushree_Kapse Hi I'm back on this.
Sorry I forgot to specify that it is not necessary that ITEM_DESCRIPTION will contain 1 part at the end that can be discarded. It can be like
Baseball bat wanted by Team AZ BaseballBat needed TeamCA Base ball Team NY HelmetIt can be any weird combination.
Hence I am specifcally looking for a lookup on part of string.
Sorry for not being clear.
Any help is much appreciated.