Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concat-Expression

Hello community,

i have one question.

I have a tablewith a colum "test" with the values apple, orange, salad.

i want to concate them like this :

'apple', 'orange', 'salad'.

the function concat(test,',') ist not enough. the apostrophe ist missing.

can someone help me please?

thanks a lot!

best regards,

Aylin

8 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

You could use like

Chr(39) & concat(test, Chr(39) & ',' & Chr(39)) & Chr(39)

MayilVahanan

Hi

Try like this

Load Chr(39)&Replace(B,',',Chr(39)&','&Chr(39))&Chr(39) As B;

Load Concat(DISTINCT A,',') as B;

Load * Inline

[

A

apple

orange

salad

];

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Try,

='`'& concat(Left([year-month],4),'`,`')&'`'

Not applicable
Author

Hi thanks for your answer. i testet it but the expression returns a 0 instad of a 1.

mixMatch('orange',B)

Not applicable
Author


HI thanks for your answer. i tried this but my expressions returns a 0.

mixMatch('orange',Chr(39) & concat(test, Chr(39) & ',' & Chr(39)) & Chr(39)

)

CELAMBARASAN
Partner - Champion
Partner - Champion

You could use

=WildMatch(B, '*orange*')

Because MixMatch matches the whole word.

Not applicable
Author

i can't use wildmatch. because i have to search for the whole word. how can i do this with mixmatch ?

Not applicable
Author

I solved it:

WildMatch(B, chr(42)&'orange'&chr(42))

Thanks all for your help#!