<?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: if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/338510#M124866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand why all this is needed.&amp;nbsp; Why don't you select years themselves - 2012, 2011, 2010, 2009?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Aug 2012 18:07:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-05T18:07:59Z</dc:date>
    <item>
      <title>if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/338509#M124865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have yeaid as 0,-1,-2,-3,-4 and i have filling date.so i have to build a pivot table&lt;/P&gt;&lt;P&gt;for example----if the yearid=0,filling year is 2012&lt;/P&gt;&lt;P&gt;if it is -1 it has to show 2011 and if it is -3,-4 it shows 2010 and 2009 like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i have written a&amp;nbsp; expression year(sum{&amp;lt;yearid=0&amp;gt;}filling date).. so i stored in a variable&lt;/P&gt;&lt;P&gt;for -1 i just added -1 to the expression and stored in a variable ,for -2,-3 and -4&amp;nbsp; i did the same thing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these dates i have to use it in the diemension when i clik onyearid=0 it shoiuld display,2012, if yearid=-1,2011&lt;/P&gt;&lt;P&gt;i can&amp;nbsp; display if i select 1 year, but if i select more than one yearid it displays null.finally yearid valuses should be driven by the filling year.&lt;/P&gt;&lt;P&gt;so how to use&amp;nbsp; using if statemetn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can somebody help me plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2012 00:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/338509#M124865</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2012-08-05T00:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/338510#M124866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand why all this is needed.&amp;nbsp; Why don't you select years themselves - 2012, 2011, 2010, 2009?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2012 18:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/338510#M124866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-05T18:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/338511#M124867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is i dont have a year, i have only for 0 yr and i need to calcualte for the past 5yrs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2012 18:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/338511#M124867</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2012-08-05T18:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/338512#M124868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in the script (on the front end too) without any if.&lt;/P&gt;&lt;P&gt;You know the current year - it is year(ReloadTime()).&amp;nbsp; So, for any yearid, the year is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;year(ReloadTime())+yearid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;That gives you:&lt;/P&gt;&lt;P&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012&lt;/P&gt;&lt;P&gt;-1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011&lt;/P&gt;&lt;P&gt;-2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2012 19:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/338512#M124868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-05T19:47:48Z</dc:date>
    </item>
  </channel>
</rss>

