<?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: Resident load from qvd with custom date format... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resident-load-from-qvd-with-custom-date-format/m-p/369873#M1174776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I found it by myself, I have to declare the OrderDate within my LOAD statement of the QVD files, otherwise it doesn't recognise the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source_table:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MakeDate(Left(Fiscal_Period,4),Right(Fiscal_Period,3),) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From Report_*.qvd(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempMinMaxDates:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; Min(Date) as MinDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; Max(Date) as MaxDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Source_table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 09:14:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-27T09:14:38Z</dc:date>
    <item>
      <title>Resident load from qvd with custom date format...</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-load-from-qvd-with-custom-date-format/m-p/369871#M1174774</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;First I'm loading an array of monthly qvd files, which works :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source_table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * From Report_*.qvd(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These qvd files have a field called Fiscal_Period, which shows the months and years in such way : 001.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to make a calendar out of this, but it doesnt work :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source_table:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * From Report_*.qvd(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Fiscal_Period,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MakeDate(Num(Right(Fiscal_Period,4)), Num(Mid(Fiscal_Period,2,2)),1) as OrderDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Date#(Orderdate, 'YYMM') as FinalDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Source_table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives the error : OrderDate not found,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I do wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 08:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-load-from-qvd-with-custom-date-format/m-p/369871#M1174774</guid>
      <dc:creator />
      <dc:date>2012-06-27T08:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Resident load from qvd with custom date format...</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-load-from-qvd-with-custom-date-format/m-p/369872#M1174775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to do a preceeding load. You can't reference a field created in the same load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#(OrderDate, 'YYMM') as FinalDate;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fiscal_Period,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeDate(Num(Right(Fiscal_Period,4)), Num(Mid(Fiscal_Period,2,2)),1) as OrderDate&lt;/P&gt;&lt;P&gt;Resident Source_table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 09:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-load-from-qvd-with-custom-date-format/m-p/369872#M1174775</guid>
      <dc:creator>michael123</dc:creator>
      <dc:date>2012-06-27T09:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Resident load from qvd with custom date format...</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-load-from-qvd-with-custom-date-format/m-p/369873#M1174776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I found it by myself, I have to declare the OrderDate within my LOAD statement of the QVD files, otherwise it doesn't recognise the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source_table:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MakeDate(Left(Fiscal_Period,4),Right(Fiscal_Period,3),) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From Report_*.qvd(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempMinMaxDates:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; Min(Date) as MinDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; Max(Date) as MaxDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Source_table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 09:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-load-from-qvd-with-custom-date-format/m-p/369873#M1174776</guid>
      <dc:creator />
      <dc:date>2012-06-27T09:14:38Z</dc:date>
    </item>
  </channel>
</rss>

