

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Concatenate field value with single quotes
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
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fun with chr(39)
=chr(39) & concat(F1,chr(39)&','&chr(39)) & chr(39)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or this
Concat(DISTINCT Chr(39) & F1 & Chr(39), ', ')


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nice ! thanks a lot
but there is no Escape Character in qlik expression syntax ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is, check this


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Neat one !


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Love it

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think this should work
Concat(DISTINCT '''' & F1 & '''', ', ')
Here I have used four single quotes


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But why do you want to put spaces after first single quote? Why not this?
Concat(DISTINCT '''' & F1 & '''', ', ')

- « Previous Replies
-
- 1
- 2
- Next Replies »