Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there
let's say I have a table like this
F1
A
B
C
need a expression in text box to show this result
'A','B','C'
how to do this ? thanks
Fun with chr(39)
=chr(39) & concat(F1,chr(39)&','&chr(39)) & chr(39)
Or this
Concat(DISTINCT Chr(39) & F1 & Chr(39), ', ')
Nice ! thanks a lot
but there is no Escape Character in qlik expression syntax ?
There is, check this
Neat one !
Love it
I think this should work
Concat(DISTINCT '''' & F1 & '''', ', ')
Here I have used four single quotes
Hi Sunny
Actually it not , I find that we have to put a space after first single quote so that expression syntax will be ok
like this
Concat( ' ''' & F1 & ' ''', ',')
but we will have spaces in result weird
But why do you want to put spaces after first single quote? Why not this?
Concat(DISTINCT '''' & F1 & '''', ', ')