<?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: Set analysis in a variable, with dynamic field value in another variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-a-variable-with-dynamic-field-value-in-another/m-p/1340904#M413080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could try a variable with parameters...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9045"&gt;Variables with Parameters&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Apr 2017 17:56:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-28T17:56:57Z</dc:date>
    <item>
      <title>Set analysis in a variable, with dynamic field value in another variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-a-variable-with-dynamic-field-value-in-another/m-p/1340903#M413079</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 have an expression with Set Analysis, that's configured in a variable as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vSA_Cond1&lt;/STRONG&gt; = [Snapshot Type] = {'Current','History',&lt;STRONG&gt;'Year to Dec 2016/17'&lt;/STRONG&gt;}; (No quotes) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;vSA_Cond1&amp;gt;}amount)&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;This works just fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now is to make the third value dynamic: &lt;STRONG&gt;'Year to Dec 2016/17'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have a second variable&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vYearToDec&lt;/STRONG&gt; = 'Year to Dec $(vEntryYear_Previous)'&amp;nbsp;&amp;nbsp; (Quotes)&amp;nbsp; --&amp;gt; This will return exactly Year to Dec 2016/17&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &lt;STRONG&gt;vEntryYear_Previous&lt;/STRONG&gt; = 2016/17&amp;nbsp; (calculated in the script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This configuration is not working. It doesn't recognise the value in vYearToDec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joaquin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 17:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-a-variable-with-dynamic-field-value-in-another/m-p/1340903#M413079</guid>
      <dc:creator>j_nlucas</dc:creator>
      <dc:date>2017-04-28T17:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a variable, with dynamic field value in another variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-a-variable-with-dynamic-field-value-in-another/m-p/1340904#M413080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could try a variable with parameters...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9045"&gt;Variables with Parameters&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 17:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-a-variable-with-dynamic-field-value-in-another/m-p/1340904#M413080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-28T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a variable, with dynamic field value in another variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-in-a-variable-with-dynamic-field-value-in-another/m-p/1340905#M413081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. It's a good thing to have in the tool box definitely.&lt;/P&gt;&lt;P&gt;My approach is quite similar, since instead of using a parameter ($1) I was using a different variable. But the idea is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fixed the problem by simply adding chr(39) before and after the variable vYearToDec, and that made the trick!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joaquin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 07:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-in-a-variable-with-dynamic-field-value-in-another/m-p/1340905#M413081</guid>
      <dc:creator>j_nlucas</dc:creator>
      <dc:date>2017-05-02T07:43:33Z</dc:date>
    </item>
  </channel>
</rss>

