<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can I use single quote in concat? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198306#M22629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling with special characters today!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to join my data into a single string with the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'valA' OR 'valB' OR 'valC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;concat(field, chr(39) &amp;amp; ' OR ' &amp;amp; chr(39)) - this just gives me an invalid dimension&lt;/LI&gt;&lt;LI&gt;redefining my data to include the single quotes, so my values are 'valA', 'valB', 'valC' instead of valA, valB, valC, and when I look at them separately, the single quotes are there, but once I concat, they are gone and I get: valA OR valB OR valC&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 16:51:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-27T16:51:14Z</dc:date>
    <item>
      <title>Can I use single quote in concat?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198306#M22629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling with special characters today!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to join my data into a single string with the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'valA' OR 'valB' OR 'valC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;concat(field, chr(39) &amp;amp; ' OR ' &amp;amp; chr(39)) - this just gives me an invalid dimension&lt;/LI&gt;&lt;LI&gt;redefining my data to include the single quotes, so my values are 'valA', 'valB', 'valC' instead of valA, valB, valC, and when I look at them separately, the single quotes are there, but once I concat, they are gone and I get: valA OR valB OR valC&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198306#M22629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-27T16:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use single quote in concat?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198307#M22630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Aggr(Concat(DISTINCT Chr(39) &amp;amp; field &amp;amp; Chr(39), ' OR '), &lt;EM&gt;&amp;lt;Aggregating dimension here&amp;gt;&lt;/EM&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198307#M22630</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T16:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use single quote in concat?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198308#M22631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't work either. Maybe it has to do with how I am trying to use the statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, I'm just trying to create one list with all of the selected set and put it in a dimension column of a table, so I don't need the Aggr function. But that's fine, I tried with just the concat part and it doesn't work. However, I've also confirmed that if I replace the Chr(39) with Chr(34) (double quote), it does work, so this is something specific to the single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can tell me a better way to accomplish the goal of putting this string in a dimension column without so many steps and that might work. Here's how I'm doing it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable vTest defined as =Concat(DISTINCT Chr(39) &amp;amp; field &amp;amp; Chr(39), ' OR ') and then I have my dimension defined as ='$(vtest)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the only way I could find to get the function to execute and fill in the dimension column with the resulting string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have actually accomplished my ultimate goal avoiding this string all together, so this is no longer needed for my task, but I would still like to know if there is a way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 09:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198308#M22631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-28T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use single quote in concat?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198309#M22632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Have you tried textbetween functions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TextBetween&lt;/P&gt;&lt;P&gt;This function returns the text between the n:th occurrence of beforetext and the immediately following&lt;/P&gt;&lt;P&gt;occurrence of aftertext within the string s.&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;TextBetween(s , beforetext , aftertext [, n ])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples and results:&lt;/P&gt;&lt;P&gt;TextBetween('&amp;lt;abc&amp;gt;', '&amp;lt;', '&amp;gt;') Returns 'abc'&lt;/P&gt;&lt;P&gt;TextBetween('&amp;lt;abc&amp;gt;&amp;lt;de&amp;gt;', '&amp;lt;', '&amp;gt;',2) Returns 'de'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 08:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198309#M22632</guid>
      <dc:creator>marcohadiyanto</dc:creator>
      <dc:date>2016-11-02T08:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use single quote in concat?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198310#M22633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think maybe you misunderstood my question. It was specifically about wanting to put single quotes into the string generated by concat. The problem seems to be that there is no way to get Qlik Sense to treat the single quote as a literal character, it always interprets it instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 13:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1198310#M22633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-10T13:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use single quote in concat?</title>
      <link>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1555843#M40203</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that this is an old topic but I faced the same problem and found the solution.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;replace(concat(field_name,','),',',chr(39)&amp;amp;','&amp;amp;chr(39))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;concat&lt;/EM&gt; return the values seperated by " , " e.g. a,b,c,d&lt;/P&gt;&lt;P&gt;then &lt;EM&gt;replace&lt;/EM&gt; replaces " ,&amp;nbsp; "to " ',' " so a,,b,c,d turns into a','b','c','d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 09:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-I-use-single-quote-in-concat/m-p/1555843#M40203</guid>
      <dc:creator>mtucholski</dc:creator>
      <dc:date>2019-03-13T09:41:45Z</dc:date>
    </item>
  </channel>
</rss>

