<?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: additional condition on Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/additional-condition-on-Variable/m-p/1015741#M344250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your variable so that it accepts a parameter. For example if a variable vSales is defined as sum(Sales) then change it to sum($1 Sales). You can then use it in an expression like this: =$(vSales({&amp;lt;Year={2015}&amp;gt;}))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 16:37:13 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-03-17T16:37:13Z</dc:date>
    <item>
      <title>additional condition on Variable</title>
      <link>https://community.qlik.com/t5/QlikView/additional-condition-on-Variable/m-p/1015739#M344248</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 have a variable 'Sales' (with a quite complex formula behind it) that I use everywhere in my app.&lt;/P&gt;&lt;P&gt;On 1 chart I want an additional 'year = 2015'&amp;nbsp; to be applied, like you can do in set analysis.&lt;/P&gt;&lt;P&gt;But I have no clue how to use a Variable inside a Set Analysis formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conceptually it is like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2015}&amp;gt;}$(Sales)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't get it to work...&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/additional-condition-on-Variable/m-p/1015739#M344248</guid>
      <dc:creator />
      <dc:date>2016-03-17T12:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: additional condition on Variable</title>
      <link>https://community.qlik.com/t5/QlikView/additional-condition-on-Variable/m-p/1015740#M344249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Sales is something like this -&amp;gt; Sum(Sales), then what you are trying to do won't work. I would suggest to use the expression, instead of variable in cases such as these.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/additional-condition-on-Variable/m-p/1015740#M344249</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-17T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: additional condition on Variable</title>
      <link>https://community.qlik.com/t5/QlikView/additional-condition-on-Variable/m-p/1015741#M344250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your variable so that it accepts a parameter. For example if a variable vSales is defined as sum(Sales) then change it to sum($1 Sales). You can then use it in an expression like this: =$(vSales({&amp;lt;Year={2015}&amp;gt;}))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 16:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/additional-condition-on-Variable/m-p/1015741#M344250</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-17T16:37:13Z</dc:date>
    </item>
  </channel>
</rss>

