Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dgreenberg
Luminary Alumni
Luminary Alumni

Question about searching within Concatenated field in expression

I am not sure if I like the way this was done or not, I see benefits to both.
We have a chart that is showing something like this:
RestaurantYears Reviewed
Applebees2014|2015
Fridays2012|2014
Red Lobster2015
This is accomplished through a simple concatenation
Concat
([Review Year], ' | ')
//Forgive the weird formatting of the lines above it should be on 1 line.  Concat ([Review Year],'|')
So I like the way it looks in the chart but am not sure how to make it searchable the right way.  If you filter on Applebees and 2014 you would get this row:
RestaurantYears Reviewed
Applebees2014
What I expected and want is
RestaurantYears Reviewed
Applebees2014|2015

What are your thoughts on showing concatenated values in a chart and do you have thoughts on how to have the search or filter yield my expected results?

Thanks

Dan

1 Solution

Accepted Solutions
giakoum
Partner - Master II
Partner - Master II

Concat ({<Review Year=>}<[Review Year],'|')


this will disregard your year selection in the expression

View solution in original post

4 Replies
giakoum
Partner - Master II
Partner - Master II

Concat ({<Review Year=>}<[Review Year],'|')


this will disregard your year selection in the expression

swuehl
MVP
MVP

Maybe something like this:

if( count([Review Year]), concat({1} [Review Year], '|') )

dgreenberg
Luminary Alumni
Luminary Alumni
Author

The obvious answer - thanks Ioannis.  My brain stopped working this afternoon.

Just have to remove the eroneous <

Concat ({<[Review Year]=>}[Review Year],'|')





//Concat ({<Review Year=>}<[Review Year],'|')

giakoum
Partner - Master II
Partner - Master II

sorry for the <!!

its Friday, time to relax