Skip to main content
Announcements
Meet our latest featured member Bruno! Drop a like and comment. READ ON
cancel
Showing results for 
Search instead for 
Did you mean: 
jamesjames
Contributor II
Contributor II

How to make substring ?

Hi guys,

I am trying to make an expression, thus it would divide data into smaller parts.

So far this expression works if the column has two values e.g. incoming and outgoing

if(substringcount(lower([value.name]),'incom')>0,'incoming','outgoing') 

What should I adjust for this expression ,thus it would work if the column name has three or more values?

 

2 Replies
marcus_sommer
MVP & Luminary
MVP & Luminary

Maybe subfield() is more suitable for splitting your data into several fields or into several rows for one field.

- Marcus

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

pick(
WildMatch(value.name, '*incom*', '*outgo*', '*cancel*')
,'incoming', 'outgoing', 'cancelled'
)

 

-Rob