<?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 Re: Having trouble with single quotes in variable creation and match statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Having-trouble-with-single-quotes-in-variable-creation-and-match/m-p/2539772#M109110</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Load
	Concat(Distinct chr(39) &amp;amp; Product_Key &amp;amp; Chr(39), ', ' )  as Valid_Key_List
Resident Positions;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Dec 2025 19:35:37 GMT</pubDate>
    <dc:creator>chriscammers</dc:creator>
    <dc:date>2025-12-22T19:35:37Z</dc:date>
    <item>
      <title>Having trouble with single quotes in variable creation and match statement</title>
      <link>https://community.qlik.com/t5/App-Development/Having-trouble-with-single-quotes-in-variable-creation-and-match/m-p/2539771#M109109</link>
      <description>&lt;P&gt;Hello! I am trying to use a variable to define a list that I use later in the load script to narrow down the number of entries in a table. To create this list and use it in a&amp;nbsp;&lt;EM&gt;Match&lt;/EM&gt; function, I am using single quotes around each item using&amp;nbsp;&lt;EM&gt;chr(39).&amp;nbsp;&lt;/EM&gt;Here's what that looks like in my script:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Valid_Keys:
Load
	chr(39) &amp;amp; Concat(Distinct Product_Key, ', ' ) &amp;amp; chr(39) as Valid_Key_List
Resident Positions;

Let vValid_Key_List = Peek('Valid_Key_List', 0, 'Valid_Keys');&lt;/LI-CODE&gt;&lt;P&gt;And when I reference this variable in the&amp;nbsp;&lt;EM&gt;Match&amp;nbsp;&lt;/EM&gt;function:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AccountFinal:
NoConcatenate
Load *
Resident AccountExpanded
Where Match(Product_Key, $(vValid_Key_List));&lt;/LI-CODE&gt;&lt;P&gt;Problematically, when I do this, the resulting&amp;nbsp;table is completely empty. When I&amp;nbsp;&lt;EM&gt;Trace&lt;/EM&gt; the variable just to test it out, it comes out as the following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where Match(Product_Key, ''Alternatives|Alternative Strategies|Alternative Strategies'', ''Alternatives|Capital Call Structures|Capital Call Structures'', ''Annuities|Fixed Annuities|Fixed Annuity'')&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;In the output it's clear that between each value is two single quotes...I'm extremely confused as to what is happening here and would appreciate any help in figuring out how to correctly assign and call this variable.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 19:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-trouble-with-single-quotes-in-variable-creation-and-match/m-p/2539771#M109109</guid>
      <dc:creator>maxcsquared</dc:creator>
      <dc:date>2025-12-22T19:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with single quotes in variable creation and match statement</title>
      <link>https://community.qlik.com/t5/App-Development/Having-trouble-with-single-quotes-in-variable-creation-and-match/m-p/2539772#M109110</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Load
	Concat(Distinct chr(39) &amp;amp; Product_Key &amp;amp; Chr(39), ', ' )  as Valid_Key_List
Resident Positions;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 19:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Having-trouble-with-single-quotes-in-variable-creation-and-match/m-p/2539772#M109110</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2025-12-22T19:35:37Z</dc:date>
    </item>
  </channel>
</rss>

