<?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 If statement in Load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-in-Load-script/m-p/1052010#M939178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our client Fiscal Year start from Apr to March. So we are loading data month wise. We have Year column and we don't have month column in the table. But we have columns like cost1, cost2 , cost3 which are month related column. So I am taking cost 1 as month 1 , cost 2 as month 2 and so on.&amp;nbsp; The actual output i need is when month is 1 or 2 or 3 the year should remain as previous year. For example I am loading Jan 2014 data but it should show Jan 2013 only as it comes under Fiscal Year 2013. I want to achieve this in Load script.&lt;/P&gt;&lt;P&gt;For this I did as Select IF(Month in (1,2,3), YEAR-1, YEAR) as Year but its failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how can i do this. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 14:59:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-04T14:59:51Z</dc:date>
    <item>
      <title>If statement in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-Load-script/m-p/1052010#M939178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our client Fiscal Year start from Apr to March. So we are loading data month wise. We have Year column and we don't have month column in the table. But we have columns like cost1, cost2 , cost3 which are month related column. So I am taking cost 1 as month 1 , cost 2 as month 2 and so on.&amp;nbsp; The actual output i need is when month is 1 or 2 or 3 the year should remain as previous year. For example I am loading Jan 2014 data but it should show Jan 2013 only as it comes under Fiscal Year 2013. I want to achieve this in Load script.&lt;/P&gt;&lt;P&gt;For this I did as Select IF(Month in (1,2,3), YEAR-1, YEAR) as Year but its failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how can i do this. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 14:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-Load-script/m-p/1052010#M939178</guid>
      <dc:creator />
      <dc:date>2016-02-04T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-Load-script/m-p/1052011#M939179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uma, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Match(Month,1,2,3),YEAR-1,YEAR) AS YEAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 17:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-Load-script/m-p/1052011#M939179</guid>
      <dc:creator />
      <dc:date>2016-02-04T17:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-Load-script/m-p/1052012#M939180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this post &lt;A href="https://community.qlik.com/qlik-blogpost/3138"&gt;Fiscal Year&lt;/A&gt;&amp;nbsp; to get ideas how to handle Fiscal year in Qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 18:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-Load-script/m-p/1052012#M939180</guid>
      <dc:creator>yura_ratu</dc:creator>
      <dc:date>2016-02-04T18:26:23Z</dc:date>
    </item>
  </channel>
</rss>

