I want to create a calculated dimension which searches in a string for a certain word, and then if the string contains that word, is should be named something
Dimension name : Field1
Field 1 contains below data strings
I want a calculated dimension that searches every string for the word Old, if the string contains the word OLD, then its should be named Old, otherwise New.
However, I can only seem to find a answer which searches the strings based on a locked position of the word your a searching for. Meaning that the word OLD should be in the same place every time for the calculated dimension to be working.
Is there a way to achieve it?
Any helped is very much appreciated.
You can use more intuitive expression: if(Filed1 like *old*,'OLD','NEW').
The one of advantages is it's not a case sensitive. So it's equaly will search for "OLD", "Old", "old" etc.