<?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: Year Start and End in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501499#M690948</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 recomend you to do that in the script.&lt;/P&gt;&lt;P&gt;Also I recomend you not to use an if clause.&lt;/P&gt;&lt;P&gt;Instead do the next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Year(Date)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Year,&lt;/P&gt;&lt;P&gt;Year(Date-Nº of days)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as FixedYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being Nº of days the number of days between that last sunday of April that you want, and your Date data.&lt;/P&gt;&lt;P&gt;You'll have to work it out a little bit more for your script. &lt;/P&gt;&lt;P&gt;good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2013 14:05:38 GMT</pubDate>
    <dc:creator>christian77</dc:creator>
    <dc:date>2013-10-02T14:05:38Z</dc:date>
    <item>
      <title>Year Start and End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501495#M690944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following requirement. Need your help to get it !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to take my year start as last Sunday of April i.e. 28/04/2013.The Week is from Sunday to Saturday. How can I develop this logic in Qlikview. So from 28/04/2013 to 26/04/2014 need to take as "This Year" and 29/04/2012 to 27/04/2013 as "Last Year". How can I derive this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 12:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501495#M690944</guid>
      <dc:creator>alvinford</dc:creator>
      <dc:date>2013-10-02T12:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Year Start and End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501496#M690945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD if(Date &amp;lt; weekstart(makedate(year(today())+1,4,30),0,-1) and Date &amp;gt;= weekstart(makedate(year(today()),4,30),0,-1), 'This Year',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Date &amp;lt; weekstart(makedate(year(today()),4,30),0,-1) and Date &amp;gt;= weekstart(makedate(year(today())-1,4,30),0,-1), 'Last Year')) as YearFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date(makedate(2012)+recno()-1) as Date&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;weekstart( makedate(2013,4,30), 0, -1) should return the last sunday in April 2013, change the input date for other years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 12:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501496#M690945</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-02T12:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Year Start and End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501497#M690946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Last Year is starting from 26/03/2012. But as 01/04/2012 is sunday it has to start from 01/04/2012.&lt;/P&gt;&lt;P&gt;If the NextMonth start is Sunday we have to consider that week as the First Week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request your help to change the logic accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alvin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 13:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501497#M690946</guid>
      <dc:creator>alvinford</dc:creator>
      <dc:date>2013-10-02T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Year Start and End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501498#M690947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't understand your last request and how it is related to the year start on last sunday in April.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached my sample solution, you should see the year start and year end matches your requested dates as of your initial post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 13:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501498#M690947</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-02T13:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Year Start and End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501499#M690948</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 recomend you to do that in the script.&lt;/P&gt;&lt;P&gt;Also I recomend you not to use an if clause.&lt;/P&gt;&lt;P&gt;Instead do the next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Year(Date)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Year,&lt;/P&gt;&lt;P&gt;Year(Date-Nº of days)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as FixedYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being Nº of days the number of days between that last sunday of April that you want, and your Date data.&lt;/P&gt;&lt;P&gt;You'll have to work it out a little bit more for your script. &lt;/P&gt;&lt;P&gt;good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 14:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Start-and-End/m-p/501499#M690948</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-10-02T14:05:38Z</dc:date>
    </item>
  </channel>
</rss>

