<?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: How to pass multiple string values in a single variable parameter ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197147#M386022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In variable overview you can pass multiple values using Valuelist() .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: =ValueList('2015,2016,207')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2016 20:25:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-30T20:25:20Z</dc:date>
    <item>
      <title>How to pass multiple string values in a single variable parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197144#M386019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Is there a way to put multiple string in a single parameter ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;For eg:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Expression:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Let vE_Sales = sum({&amp;lt;Year = {$1}&amp;gt;} Sales);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;When calling this expression we say&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;$(vE_Sales('2016'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;But if I wanted to do the same for multiple years. Let say 2016 &amp;amp; 2015. how do we do pass multiple string values in a single parameter ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;$(vE_Sales('2016', '2015'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 18:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197144#M386019</guid>
      <dc:creator>lightsection</dc:creator>
      <dc:date>2016-09-30T18:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple string values in a single variable parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197145#M386020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will work from script or variable overview window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Script:&lt;/P&gt;&lt;P&gt;LET vVarMultiple = CHR(39) &amp;amp; 2015 &amp;amp; CHR(39) &amp;amp; CHR(44) &amp;amp; CHR(39) &amp;amp; 2016 &amp;amp; CHR(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Variable Overview Window:&lt;/P&gt;&lt;P&gt;CHR(39) &amp;amp; 2015 &amp;amp; CHR(39) &amp;amp; CHR(44) &amp;amp; CHR(39) &amp;amp; 2016 &amp;amp; CHR(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is '2015','2016'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 19:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197145#M386020</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2016-09-30T19:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple string values in a single variable parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197146#M386021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Look&lt;/P&gt;&lt;P&gt;&lt;IMG alt="parametro.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139338_parametro.png" style="height: 493px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 19:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197146#M386021</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2016-09-30T19:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple string values in a single variable parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197147#M386022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In variable overview you can pass multiple values using Valuelist() .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: =ValueList('2015,2016,207')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 20:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197147#M386022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-30T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple string values in a single variable parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197148#M386023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this will be helpful: &lt;A href="https://community.qlik.com/message/1129861"&gt;Re: variable with comma parameter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Oct 2016 10:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197148#M386023</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-01T10:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple string values in a single variable parameter ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197149#M386024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it could be easier to use another separator than comma between your year values, as it will be interpreted as &lt;SPAN style="font-size: 13.3333330154419px;"&gt;separator of multiple variable parameters ($1, $2, $3 ...).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;So one solution might be to use the &lt;A href="https://community.qlik.com/qlik-blogpost/4096"&gt;The Search String&lt;/A&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_234891_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139366_QlikCommunity_Thread_234891_Pic1.JPG" style="height: 260px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_234891_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/139370_QlikCommunity_Thread_234891_Pic2.JPG" style="height: 131px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_234891_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/139371_QlikCommunity_Thread_234891_Pic3.JPG" style="height: 187px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14753534119014317" jivemacro_uid="_14753534119014317"&gt;
&lt;P&gt;SET vE_Sales = Sum({$&amp;lt;Year={"($1)"}&amp;gt;} Sales);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD 2000+RecNo() as Year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Money(Ceil(Rand()*1000),'$#,##0;($#,##0)') as Sales&lt;/P&gt;
&lt;P&gt;AutoGenerate 16;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Oct 2016 20:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-multiple-string-values-in-a-single-variable/m-p/1197149#M386024</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-01T20:24:37Z</dc:date>
    </item>
  </channel>
</rss>

