<?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 Convert a String to a List of Strings in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070387#M87787</link>
    <description>&lt;P&gt;I have a string that looks like "MAY,APR,MAR,FEB,JAN,DEC" but I want it to be a list of strings separated on the comma so that I can pass the list as a variable into a future SQL SELECT.&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 20:54:57 GMT</pubDate>
    <dc:creator>alutz54</dc:creator>
    <dc:date>2023-05-11T20:54:57Z</dc:date>
    <item>
      <title>Convert a String to a List of Strings</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070387#M87787</link>
      <description>&lt;P&gt;I have a string that looks like "MAY,APR,MAR,FEB,JAN,DEC" but I want it to be a list of strings separated on the comma so that I can pass the list as a variable into a future SQL SELECT.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 20:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070387#M87787</guid>
      <dc:creator>alutz54</dc:creator>
      <dc:date>2023-05-11T20:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a String to a List of Strings</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070666#M87817</link>
      <description>&lt;P&gt;&amp;nbsp;Do I have to create a table and do a Load&amp;nbsp;&lt;SPAN&gt;SubField(&lt;/SPAN&gt;&lt;STRONG&gt;Field&lt;/STRONG&gt;&lt;SPAN&gt;,',') as [List of Strings]?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070666#M87817</guid>
      <dc:creator>alutz54</dc:creator>
      <dc:date>2023-05-12T13:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a String to a List of Strings</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070672#M87818</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/229880"&gt;@alutz54&lt;/a&gt;&amp;nbsp; you have string but how it is stored? Is it stored in one of the column in table? If so how does column value looks like. Do you want to create a list from that column?&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070672#M87818</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-05-12T13:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a String to a List of Strings</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070678#M87819</link>
      <description>&lt;P&gt;Sorry, I am creating a variable of the previous 6 fiscal periods so that I can use that variable to filter a future SQL SELECT. So the string is stored as a variable that I created is stored as a variable.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070678#M87819</guid>
      <dc:creator>alutz54</dc:creator>
      <dc:date>2023-05-12T13:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a String to a List of Strings</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070777#M87824</link>
      <description>&lt;P&gt;Are you looking for something like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SET string = '"MAY,APR,MAR,FEB,JAN,DEC"';
LET strings = Replace(string,',','","');&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1683908513526.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/107063i36E8D2B4617F8856/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_0-1683908513526.png" alt="MarcoWedel_0-1683908513526.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 16:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070777#M87824</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2023-05-12T16:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a String to a List of Strings</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070808#M87825</link>
      <description>&lt;P&gt;Yes! The Replace function is exactly what I was looking for. Thank you, I am very new to Qlik Sense. If I may ask one more question, I have a SQL SELECT later on in this code where I am using the above list of strings as a filter in a WHERE clause. How would I reference the strings variable? The $(strings) format is not working.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 17:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070808#M87825</guid>
      <dc:creator>alutz54</dc:creator>
      <dc:date>2023-05-12T17:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a String to a List of Strings</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070898#M87840</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/229880"&gt;@alutz54&lt;/a&gt;&amp;nbsp; If you are going to use this string in SQL query not sure if double code works so instead try single quotes&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SET string = '"MAY,APR,MAR,FEB,JAN,DEC"';
LET strings = replace(Replace(string,',',''','''),'"',chr(39));&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 May 2023 22:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070898#M87840</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2023-05-12T22:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a String to a List of Strings</title>
      <link>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070912#M87841</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LET string = 'MAY,APR,MAR,FEB,JAN,DEC';&lt;/P&gt;
&lt;P&gt;LET strings = Chr(39) &amp;amp; Replace(string, ',', Chr(39) &amp;amp; ',' &amp;amp; Chr(39)) &amp;amp; Chr(39);&lt;/P&gt;
&lt;P&gt;LOAD *&lt;/P&gt;
&lt;P&gt;FROM YourTable&lt;/P&gt;
&lt;P&gt;WHERE Month IN ($(strin&lt;SPAN&gt;gs));&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 04:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Convert-a-String-to-a-List-of-Strings/m-p/2070912#M87841</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2023-05-13T04:54:01Z</dc:date>
    </item>
  </channel>
</rss>

