<?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: Re: Using variable value in Set Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726561#M673699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Gabriela. It worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 18:46:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-23T18:46:15Z</dc:date>
    <item>
      <title>Using variable value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726555#M673693</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'm trying to store one dynamic expression in a variable and then trying to utilize in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable:&lt;/P&gt;&lt;P&gt;vCurrent_Quarter = 1&lt;/P&gt;&lt;P&gt;vCurrent_Year = 2015&lt;/P&gt;&lt;P&gt;vNext_Quarter = If($(vCurrent_Quarter)=4,'Q'&amp;amp; 1 &amp;amp; ' ' &amp;amp; Right(($(vCurrent_year)+1),2),'Q'&amp;amp;($(vCurrent_Quarter)+1) &amp;amp; ' ' &amp;amp; Right($(vCurrent_year),2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: Sum({$&amp;lt;FQY = {'$(=vNext_Quarter)'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically the FQY values are Q1 15, Q2 15 etc. and based on the Current year variable value, I want to produce the next quarter FQY value. For ex. if Current Quarter variable value is 1 then the FQY value should be Q2 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 13:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726555#M673693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T13:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726556#M673694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply add the new field called "Next Quarter"&amp;nbsp; to the Calendar table &amp;amp; use that field in Set Analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 17:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726556#M673694</guid>
      <dc:creator />
      <dc:date>2014-07-22T17:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726557#M673695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are missing another dollar sign expansion, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({$&amp;lt;FQY = {'$(=$(vNext_Quarter))'}&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 17:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726557#M673695</guid>
      <dc:creator>gmoraleswit</dc:creator>
      <dc:date>2014-07-22T17:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726558#M673696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be done but I don't want to manually do that stuff as today the requirement is to get the next quarter but what if when the requirement changes to have the next 2 quarter instead of next quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I want to achieve this behavior dynamically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726558#M673696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-23T16:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using variable value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726559#M673697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gabriela, but that is dollar sign is optional. Even if you wouldn't add the $ sign, qv assumes that you want to add $ and therefore a default behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726559#M673697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-23T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using variable value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726560#M673698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 17:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726560#M673698</guid>
      <dc:creator>gmoraleswit</dc:creator>
      <dc:date>2014-07-23T17:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using variable value in Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726561#M673699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Gabriela. It worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 18:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variable-value-in-Set-Expression/m-p/726561#M673699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-23T18:46:15Z</dc:date>
    </item>
  </channel>
</rss>

