<?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 Load Year/Month/Day from .qvd file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Year-Month-Day-from-qvd-file/m-p/613754#M1097099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a series of csv files that I have loaded into a qvd file.&amp;nbsp; See the thread here: &lt;A _jive_internal="true" href="https://community.qlik.com/thread/113287" title="http://community.qlik.com/thread/113287"&gt;http://community.qlik.com/thread/113287&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load the year, month, and day from the "Date" field.&amp;nbsp; I have a separate .qvw file where this works fine, and there are several posts here that show how to do this.&amp;nbsp; Since my file has a loop to add new .csv files to the .qvd, I don't know where to put the LOAD statement to make this work.&amp;nbsp; I have made several attempts by trial and error, but I can't figure out how to make this work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a different file where this works fine, but all of the data is loaded from a single .xlsx file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have no idea where this LOAD statement should go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date) as MonthDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Time(Date) as TimeDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(Date) as YearDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Day(Date) as DayDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code causes an error with the Autogenerate line in the attached file.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Kristan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 05:19:13 GMT</pubDate>
    <dc:creator>gshockxcc</dc:creator>
    <dc:date>2014-04-24T05:19:13Z</dc:date>
    <item>
      <title>Load Year/Month/Day from .qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Year-Month-Day-from-qvd-file/m-p/613754#M1097099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a series of csv files that I have loaded into a qvd file.&amp;nbsp; See the thread here: &lt;A _jive_internal="true" href="https://community.qlik.com/thread/113287" title="http://community.qlik.com/thread/113287"&gt;http://community.qlik.com/thread/113287&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load the year, month, and day from the "Date" field.&amp;nbsp; I have a separate .qvw file where this works fine, and there are several posts here that show how to do this.&amp;nbsp; Since my file has a loop to add new .csv files to the .qvd, I don't know where to put the LOAD statement to make this work.&amp;nbsp; I have made several attempts by trial and error, but I can't figure out how to make this work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a different file where this works fine, but all of the data is loaded from a single .xlsx file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have no idea where this LOAD statement should go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date) as MonthDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Time(Date) as TimeDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(Date) as YearDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Day(Date) as DayDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code causes an error with the Autogenerate line in the attached file.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Kristan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 05:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Year-Month-Day-from-qvd-file/m-p/613754#M1097099</guid>
      <dc:creator>gshockxcc</dc:creator>
      <dc:date>2014-04-24T05:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load Year/Month/Day from .qvd file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Year-Month-Day-from-qvd-file/m-p/613755#M1097101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the master calendar for the application and create a master calendar from the date field and then connect them some thing like example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let varMinDate = Num(Makedate(2006,1,1));&lt;/P&gt;&lt;P&gt;Let varMaxDate = Num(Makedate(Year(today()),Month(today()),Day(today())));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Datefield:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Date($(varMinDate)+IterNo()-1) AS Datefield,&lt;/P&gt;&lt;P&gt;Year(date($(varMinDate)+IterNo()-1)) as Year,&lt;/P&gt;&lt;P&gt;Month(date($(varMinDate)+IterNo()-1)) as Month,&lt;/P&gt;&lt;P&gt;Day(date($(varMinDate)+IterNo()-1)) as Day,&lt;/P&gt;&lt;P&gt;Time(date($(varMinDate)+IterNo()-1)) as Time&lt;/P&gt;&lt;P&gt;AUTOGENERATE (1) &lt;/P&gt;&lt;P&gt;WHILE $(varMinDate)+IterNo()-1&amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 05:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Year-Month-Day-from-qvd-file/m-p/613755#M1097101</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-24T05:36:09Z</dc:date>
    </item>
  </channel>
</rss>

