<?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 How do I create a variable string that contains single quotes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-variable-string-that-contains-single-quotes/m-p/437149#M163060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I get the 'Let' assignment to include the quotes surrounding the code values.&amp;nbsp; There are about 20 values, I use them &lt;/P&gt;&lt;P&gt;in 4 select statements, and do not want to hardcode the 'IN' condition multiple places since the values may change over time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt; font-family: Courier New;"&gt;vActivity_Code_List&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;='''Appeal_LA','Appeal_BT','Appeal_NU','Appeal_HS''';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; SELECT&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; al.ACTIVITY_CODE,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; al.ACT_LOG_COMMENT,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; al.CONTACT_ID_SEQ,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; al.LAST_MODIFIED_DATE&lt;BR /&gt;&lt;BR /&gt;FROM PROD."ACTIVITY_LOG" al&lt;BR /&gt;&lt;BR /&gt;WHERE 1 = 1&lt;BR /&gt; AND&amp;nbsp;&amp;nbsp; al.ACTIVITY_CODE in ('$(vActivity_Code_List )')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2013 20:40:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-14T20:40:02Z</dc:date>
    <item>
      <title>How do I create a variable string that contains single quotes</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-variable-string-that-contains-single-quotes/m-p/437149#M163060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I get the 'Let' assignment to include the quotes surrounding the code values.&amp;nbsp; There are about 20 values, I use them &lt;/P&gt;&lt;P&gt;in 4 select statements, and do not want to hardcode the 'IN' condition multiple places since the values may change over time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt; font-family: Courier New;"&gt;vActivity_Code_List&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;='''Appeal_LA','Appeal_BT','Appeal_NU','Appeal_HS''';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; SELECT&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; al.ACTIVITY_CODE,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; al.ACT_LOG_COMMENT,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; al.CONTACT_ID_SEQ,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; al.LAST_MODIFIED_DATE&lt;BR /&gt;&lt;BR /&gt;FROM PROD."ACTIVITY_LOG" al&lt;BR /&gt;&lt;BR /&gt;WHERE 1 = 1&lt;BR /&gt; AND&amp;nbsp;&amp;nbsp; al.ACTIVITY_CODE in ('$(vActivity_Code_List )')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 20:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-variable-string-that-contains-single-quotes/m-p/437149#M163060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-14T20:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a variable string that contains single quotes</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-variable-string-that-contains-single-quotes/m-p/437150#M163061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET &lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="font-size: 8pt; color: #808080; font-family: 'Courier New';"&gt;vActivity_Code_List&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: 'Courier New';"&gt;='Appeal_LA','Appeal_BT','Appeal_NU','Appeal_HS';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 20:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-variable-string-that-contains-single-quotes/m-p/437150#M163061</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-14T20:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a variable string that contains single quotes</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create-a-variable-string-that-contains-single-quotes/m-p/437151#M163062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also had to remove the quotes from here: ('$(vActivity_Code_List )') and that worked, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 21:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create-a-variable-string-that-contains-single-quotes/m-p/437151#M163062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-14T21:04:26Z</dc:date>
    </item>
  </channel>
</rss>

