<?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: Variable with set analysis and a string parameter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756407#M269305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to put multiple string in a single parameter ?&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Let vE_Sales = sum({&amp;lt;Year = {$1}&amp;gt;} Sales);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When calling this expression we say&lt;/P&gt;&lt;P&gt;$(vE_Sales('2016'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(vE_Sales('2016', '2015'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2016 18:00:33 GMT</pubDate>
    <dc:creator>lightsection</dc:creator>
    <dc:date>2016-09-30T18:00:33Z</dc:date>
    <item>
      <title>Variable with set analysis and a string parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756402#M269300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to make a variable which contains a set analysis and a parameter in it.&amp;nbsp; After I put an expression in my chart with that variable but it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My variable vTest contains:&amp;nbsp;&amp;nbsp; =Only({1&amp;lt;Code_Measures_et_Time={$1}&amp;gt;} Time_Label)&lt;/P&gt;&lt;P&gt;In my chart I put this expression in the expression label : =$(vTest(101_1001))&lt;/P&gt;&lt;P&gt;My parameter is a string : 101_1001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 22:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756402#M269300</guid>
      <dc:creator />
      <dc:date>2015-02-05T22:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with set analysis and a string parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756403#M269301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;({1&amp;lt;Code_Measures_et_Time={'$1'}&amp;gt;} Time_Label)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(note the quotes). If you fill the variable with a LET statement, use chr(39) function calls to insert the quotes in a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 22:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756403#M269301</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-02-05T22:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with set analysis and a string parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756404#M269302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but I already tried that and it didn't help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 22:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756404#M269302</guid>
      <dc:creator />
      <dc:date>2015-02-05T22:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with set analysis and a string parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756405#M269303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the answer myself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My variable vTest must contains (i removed the equal sign&lt;/P&gt;&lt;P&gt;in my variable:&amp;nbsp;&amp;nbsp; Only({1&amp;lt;Code_Measures_et_Time={$1}&amp;gt;} Time_Label)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way my variable doesn't recalculate before having my parameter I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my chart I put this expression in the expression label :&amp;nbsp; =$(vTest(101_1001))&lt;/P&gt;&lt;P&gt;But because I have a formula in my variable that need to be evaluated I added "=$(" in front and ")" at end : =$(=$(vTest(101_1001)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 22:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756405#M269303</guid>
      <dc:creator />
      <dc:date>2015-02-05T22:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with set analysis and a string parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756406#M269304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right, should have seen that. It's a common mistake that makes chart expressions fall over. Good deduction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 22:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756406#M269304</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-02-05T22:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with set analysis and a string parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756407#M269305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to put multiple string in a single parameter ?&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Let vE_Sales = sum({&amp;lt;Year = {$1}&amp;gt;} Sales);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When calling this expression we say&lt;/P&gt;&lt;P&gt;$(vE_Sales('2016'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(vE_Sales('2016', '2015'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 18:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-set-analysis-and-a-string-parameter/m-p/756407#M269305</guid>
      <dc:creator>lightsection</dc:creator>
      <dc:date>2016-09-30T18:00:33Z</dc:date>
    </item>
  </channel>
</rss>

