<?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 Autogenerate and from statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Autogenerate-and-from-statement/m-p/556100#M689531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use an autogenerate and a from statement in the same load?&amp;nbsp; I have 3 columns, Dept Code, 2012 bed count and 2013 bed count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is have dept code and then a date for every day in the year so 1/1/2013 --&amp;gt; 12/31/2013 with the value from the corresponding bed count column for every date of the year.&amp;nbsp; Attached is an example of what I have currently.&amp;nbsp; Any help would be appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Oct 2013 15:47:37 GMT</pubDate>
    <dc:creator>jpapador</dc:creator>
    <dc:date>2013-10-14T15:47:37Z</dc:date>
    <item>
      <title>Autogenerate and from statement</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-and-from-statement/m-p/556100#M689531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use an autogenerate and a from statement in the same load?&amp;nbsp; I have 3 columns, Dept Code, 2012 bed count and 2013 bed count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is have dept code and then a date for every day in the year so 1/1/2013 --&amp;gt; 12/31/2013 with the value from the corresponding bed count column for every date of the year.&amp;nbsp; Attached is an example of what I have currently.&amp;nbsp; Any help would be appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 15:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-and-from-statement/m-p/556100#M689531</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-10-14T15:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate and from statement</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-and-from-statement/m-p/556101#M689532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Units:&lt;/P&gt;&lt;P&gt;CROSSTABLE (Year,Count) LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Department Code],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2012 Bed Count] as 2012,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2013 Bed Count] as 2013&lt;/P&gt;&lt;P&gt;FROM EX1.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LEFT JOIN (Units) LOAD text(Year(Date)) as Year, Date;&lt;/P&gt;&lt;P&gt;LOAD Date(Makedate(2012)+recno()-1) as Date&lt;/P&gt;&lt;P&gt;AutoGenerate 366+365;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop field Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: And if you don't want to use a join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Units:&lt;/P&gt;&lt;P&gt;CROSSTABLE (Year,Count) LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Department Code], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2012 Bed Count] as 2012, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2013 Bed Count] as 2013&lt;/P&gt;&lt;P&gt;FROM EX1.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Units2:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(MakeDate(num#(Year))+iterno()-1) as Date&lt;/P&gt;&lt;P&gt; Resident Units &lt;/P&gt;&lt;P&gt;while iterno() &amp;lt;= floor(yearend(makedate(num#(Year)))-yearstart(makedate(num#(Year))))+1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; drop table Units;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 15:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-and-from-statement/m-p/556101#M689532</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-14T15:58:15Z</dc:date>
    </item>
  </channel>
</rss>

