<?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: Regarding Last Year To Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Regarding-Last-Year-To-Date/m-p/730914#M261800</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;Try with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vLastYear = Date(MakeDate((Year(Today())-1),Month(Today()),Day(Today())),'YYYY/MM/DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyFactTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;From MYFile.qvd&lt;/P&gt;&lt;P&gt;where Date(MakeDate(Left(End_Date,4),Mid(End_Date,5,2),Mid(End_Date,7,2)),'YYYY/MM/DD')&amp;gt;='$(vLastYear)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With MakeDate you can get a date format from your text value (eg. 20140831T00:00:00) and be able to use it in a where condition in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2014 21:30:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-22T21:30:17Z</dc:date>
    <item>
      <title>Regarding Last Year To Date</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Last-Year-To-Date/m-p/730913#M261799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which I need to load data until last year to date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say for example:&lt;/P&gt;&lt;P&gt;If I reload the application today, I need to load data until 22nd august,2013 based on a field called End_Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Format of End_Date is with time stamp: Eg: 20140831T00:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also how to convert this to date format say: 2014/08/30 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can make use of set analysis in chart to get LYTD but I need to accomplish it in&amp;nbsp; load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 20:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Last-Year-To-Date/m-p/730913#M261799</guid>
      <dc:creator />
      <dc:date>2014-08-22T20:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Last Year To Date</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Last-Year-To-Date/m-p/730914#M261800</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;Try with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vLastYear = Date(MakeDate((Year(Today())-1),Month(Today()),Day(Today())),'YYYY/MM/DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyFactTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;From MYFile.qvd&lt;/P&gt;&lt;P&gt;where Date(MakeDate(Left(End_Date,4),Mid(End_Date,5,2),Mid(End_Date,7,2)),'YYYY/MM/DD')&amp;gt;='$(vLastYear)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With MakeDate you can get a date format from your text value (eg. 20140831T00:00:00) and be able to use it in a where condition in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 21:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Last-Year-To-Date/m-p/730914#M261800</guid>
      <dc:creator />
      <dc:date>2014-08-22T21:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Last Year To Date</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-Last-Year-To-Date/m-p/730915#M261801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oswaldo,it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 22:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-Last-Year-To-Date/m-p/730915#M261801</guid>
      <dc:creator />
      <dc:date>2014-08-22T22:03:06Z</dc:date>
    </item>
  </channel>
</rss>

