Hello, I am working on a dashboard and I would like to know if someone might have had the problem that I have.
I have this calculated field that groups what you want by number of touchpoints that you have in a path:
ifelse(
contains(path, ‘[4’, CASE_INSENSITIVE), ‘4’,
contains(path, ‘[3’, CASE_INSENSITIVE), ‘3’,
contains(path, ‘[2’, CASE_INSENSITIVE), ‘2’,
contains(path, ‘[1’, CASE_INSENSITIVE), ‘1’,
‘Others’)
However, I would like to group by words too, for example group by ‘SBV’ and see how many purchases were made with a path containing an SBV ad.
I did the same query but like this:
ifelse(
contains(path, ‘SBV’, CASE_INSENSITIVE), ‘SBV’,
contains(path, ‘SP’, CASE_INSENSITIVE), ‘SP’,
contains(path, ‘SD’, CASE_INSENSITIVE), ‘SD’,
‘Others’)
It works but there is a problem, for example here the first one is SBV, so when I insert a visual the purchases that have SBV will all be there, but then SD won’t count those purchases even though sometimes the paths have SBV and SD.
I think there might be something like the SQL LIKE %SBV% to take into account no matter what is before or after the word
Hope I made myself clear, thank you