<?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: nested If condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/nested-If-condition/m-p/330650#M121749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to write an expression that sums up something over the last 4 years based on the Max year value that you've selected you can use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={"&amp;lt;=$(=Max(Year))&amp;gt;$(=Max(Year)-4)"}&amp;gt;} ValueField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 01:48:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-01T01:48:13Z</dc:date>
    <item>
      <title>nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/nested-If-condition/m-p/330649#M121748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; i have a&amp;nbsp; year like 2012 and i need to calculate the last 4 years like 2011,2010,2009,2008 i am able to write the expressions and get it,&lt;/P&gt;&lt;P&gt;but these thosuld be implemented in pivot table, i wrote nested if conditions depending on 2012 but i am not able to display&amp;nbsp; if 2&amp;nbsp; years&amp;nbsp; selected at a time,&lt;/P&gt;&lt;P&gt;i can only get the one year selected&lt;/P&gt;&lt;P&gt; please can some one help me in writing if conditon to select the multiple years.&lt;/P&gt;&lt;P&gt;so how to write a if&amp;nbsp; condition to select multiple years at a tym..&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 00:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-If-condition/m-p/330649#M121748</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2012-08-01T00:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/nested-If-condition/m-p/330650#M121749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to write an expression that sums up something over the last 4 years based on the Max year value that you've selected you can use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={"&amp;lt;=$(=Max(Year))&amp;gt;$(=Max(Year)-4)"}&amp;gt;} ValueField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 01:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-If-condition/m-p/330650#M121749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-01T01:48:13Z</dc:date>
    </item>
  </channel>
</rss>

