<?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: Pass a string of comma separated values to a function as list of arguments in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480462#M100714</link>
    <description>&lt;P&gt;Your quotes and escapes are a little bit off, as you can see if you run the code in debug mode the variable returns "shoe', 'jacket" with double quotes around the string and single quotes after shoe and before jacket.&lt;/P&gt;
&lt;P&gt;This should work:&lt;/P&gt;
&lt;P&gt;table:&lt;BR /&gt;Load *&lt;BR /&gt;Inline [&lt;BR /&gt;Column&lt;BR /&gt;shoe&lt;BR /&gt;shirt&lt;BR /&gt;jacket&lt;BR /&gt;hat&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Let vColumns = '''shoe'', ''jacket''';&lt;/P&gt;
&lt;P&gt;Trace '$(vColumns)';&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;filtered_table:&lt;BR /&gt;Load *&lt;BR /&gt;Resident table&lt;BR /&gt;Where Match(Column, $(vColumns)) &amp;gt; 0&lt;BR /&gt;;tFacts:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;StoreDate, SKU, StoreID, Value&lt;BR /&gt;10, A, 1, 100&lt;BR /&gt;10, A, 2, 110&lt;BR /&gt;10, B, 1, 300&lt;BR /&gt;17, A, 1, 110&lt;BR /&gt;17, B, 3, 200&lt;BR /&gt;24, A, 1, 110&lt;BR /&gt;24, C, 1, 1000&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 12:24:30 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2024-09-09T12:24:30Z</dc:date>
    <item>
      <title>Pass a string of comma separated values to a function as list of arguments</title>
      <link>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480430#M100710</link>
      <description>&lt;P&gt;&lt;BR /&gt;How can I turn a string with comma separated values stored in a variable into input arguments for a &lt;EM&gt;Match()&lt;/EM&gt; function?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;And why doesn't it work this way?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table:
Load *
Inline [
Column
shoe
shirt
jacket
hat
];

Let vColumns = 'shoe'', ''jacket';

Trace '$(vColumns)';

NoConcatenate
filtered_table:
Load *
Resident table
Where Match(Column, '$(vColumns)') &amp;gt; 0
;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;For specific reasons I need&amp;nbsp;'$(vColumns)' to be passed to &lt;EM&gt;Match() &lt;/EM&gt;inside quotes.&lt;BR /&gt;&lt;BR /&gt;Is there a way to write vColumns in a &lt;EM&gt;Let&lt;/EM&gt;&amp;nbsp;- Statement so it can be passed to &lt;EM&gt;Match()&amp;nbsp;&lt;/EM&gt;as&amp;nbsp;'$(vColumns)'?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 11:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480430#M100710</guid>
      <dc:creator>Kellerassel</dc:creator>
      <dc:date>2024-09-09T11:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pass a string of comma separated values to a function as list of arguments</title>
      <link>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480458#M100713</link>
      <description>&lt;P&gt;This doesn't work. And it seems to be copied straight out of ChatGPT.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 12:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480458#M100713</guid>
      <dc:creator>Kellerassel</dc:creator>
      <dc:date>2024-09-09T12:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pass a string of comma separated values to a function as list of arguments</title>
      <link>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480462#M100714</link>
      <description>&lt;P&gt;Your quotes and escapes are a little bit off, as you can see if you run the code in debug mode the variable returns "shoe', 'jacket" with double quotes around the string and single quotes after shoe and before jacket.&lt;/P&gt;
&lt;P&gt;This should work:&lt;/P&gt;
&lt;P&gt;table:&lt;BR /&gt;Load *&lt;BR /&gt;Inline [&lt;BR /&gt;Column&lt;BR /&gt;shoe&lt;BR /&gt;shirt&lt;BR /&gt;jacket&lt;BR /&gt;hat&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Let vColumns = '''shoe'', ''jacket''';&lt;/P&gt;
&lt;P&gt;Trace '$(vColumns)';&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;filtered_table:&lt;BR /&gt;Load *&lt;BR /&gt;Resident table&lt;BR /&gt;Where Match(Column, $(vColumns)) &amp;gt; 0&lt;BR /&gt;;tFacts:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;StoreDate, SKU, StoreID, Value&lt;BR /&gt;10, A, 1, 100&lt;BR /&gt;10, A, 2, 110&lt;BR /&gt;10, B, 1, 300&lt;BR /&gt;17, A, 1, 110&lt;BR /&gt;17, B, 3, 200&lt;BR /&gt;24, A, 1, 110&lt;BR /&gt;24, C, 1, 1000&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 12:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480462#M100714</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-09-09T12:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pass a string of comma separated values to a function as list of arguments</title>
      <link>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480464#M100715</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155989"&gt;@Kellerassel&lt;/a&gt;&amp;nbsp; When you create a variable using LET it evaluates as expression and hence it is not recognising special characters as string. Instead you can create a variable using &lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;vColumns&lt;/STRONG&gt; = 'shoe','hat';&lt;/P&gt;
&lt;P&gt;Trace '$(vColumns)';&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;filtered_table:&lt;BR /&gt;Load *&lt;BR /&gt;Resident table&lt;BR /&gt;Where Match(Column, &lt;STRONG&gt;$(vColumns)&lt;/STRONG&gt;)&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 12:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480464#M100715</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-09T12:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pass a string of comma separated values to a function as list of arguments</title>
      <link>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480466#M100716</link>
      <description>&lt;P&gt;Set vColumns = 'shoe', 'jacket';&lt;/P&gt;
&lt;P&gt;Use below condition&lt;/P&gt;
&lt;P&gt;Where Match(Column, $(vColumns))&amp;nbsp;&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 12:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480466#M100716</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2024-09-09T12:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pass a string of comma separated values to a function as list of arguments</title>
      <link>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480478#M100717</link>
      <description>&lt;P&gt;Special characters? Are you referring to escape characters? Why does an expression not recognize special characters?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So, when I look at all the answers, including yours, I conclude that there is no way to express&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Let vColumns = 'shoe'', ''jacket'&lt;/LI-CODE&gt;
&lt;P&gt;in this way or any other way, either by escaping single quotes, or concatenating by using &lt;EM&gt;Chr(39), or&amp;nbsp;&lt;/EM&gt;using other quotes like " or [ or `&lt;BR /&gt;&lt;BR /&gt;so that&lt;EM&gt;&amp;nbsp;$(vColumns) &lt;/EM&gt;can be passed to &lt;EM&gt;Match()&amp;nbsp;&lt;/EM&gt;in quotes?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 13:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480478#M100717</guid>
      <dc:creator>Kellerassel</dc:creator>
      <dc:date>2024-09-09T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pass a string of comma separated values to a function as list of arguments</title>
      <link>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480480#M100718</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155989"&gt;@Kellerassel&lt;/a&gt;&amp;nbsp; Yes I am referring to escape characters. When I say not recognising I mean to say it is not recognised as we type (because LET key words tries to evaluate it as expression which expecting some concatenation of string) we need to use&amp;nbsp; additional escape characters to recognise it the way we want it to.&lt;/P&gt;
&lt;P&gt;Hence, to represent string in variable SET is the keyword&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 13:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pass-a-string-of-comma-separated-values-to-a-function-as-list-of/m-p/2480480#M100718</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-09T13:41:59Z</dc:date>
    </item>
  </channel>
</rss>

