Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How do I convert the following SQL Statement to an expression?

I have following columns.  'TravelSummary', 'Month'

Travel summary is a text field. The column TravelSummary will be similar to the below

During this trip I visited the following offices in  London,Bristol, Italy, New York and Boston

I would like to generate a graph with Dimension (Month),  count the users visited selected city.  Expression (A string extracted from Travel Summary) similar to the below sql statement

=count(SELECT * FROM mytable
WHERE TravelSummary LIKE '%word1%')


How do I generate expression?


Thank you

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

you can use

count(if(wildmatch(TravelSummary,'*word1*')>0,TravelSummary))

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

you can use

count(if(wildmatch(TravelSummary,'*word1*')>0,TravelSummary))

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

Count({<TravelSummary={"*word1*"}>} TravelSummary)

Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!