<?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: Autogenerate Dates fir inline load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887551#M309376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I dont need a master calendar&lt;/P&gt;&lt;P&gt;i just want to add date to my table, as the number of machines and shifts for every date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2015 12:25:49 GMT</pubDate>
    <dc:creator>dimak123</dc:creator>
    <dc:date>2015-05-19T12:25:49Z</dc:date>
    <item>
      <title>Autogenerate Dates fir inline load</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887549#M309374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;I have a table:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 266px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="61"&gt;&lt;STRONG&gt;Machine&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" width="130"&gt;&lt;STRONG&gt;Shift&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" width="75"&gt;&lt;STRONG&gt;Production&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Morning&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Noon&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Evening&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Morning&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;242&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Noon&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;242&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Evening&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;242&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Morning&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Noon&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Evening&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Morning&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Noon&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Evening&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Morning&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Noon&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Evening&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Morning&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;225&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Noon&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;225&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Evening&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;225&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Morning&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;180&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Noon&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;180&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Evening&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;180&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Morning&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;914&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Noon&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;914&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add a field of date from 01/01/2014 till yesterday every load&lt;/P&gt;&lt;P&gt;how do i write this?&lt;/P&gt;&lt;P&gt;thanks a head&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887549#M309374</guid>
      <dc:creator>dimak123</dc:creator>
      <dc:date>2015-05-19T12:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate Dates fir inline load</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887550#M309375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a Master Calendar for dates, but how do you plan to connect your above table to the master calendar? There are no dates in the above table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script for Master Calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMinDate = Num('01/01/2014');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMaxDate = Num(Today() - 1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempCalendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; $(vMinDate) + IterNo() - 1 as Num,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date($(vMinDate) + IterNo() - 1) as TempDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1 While $(vMinDate) + IterNo() -1 &amp;lt;= $(vMaxDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Master Calendar]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; TempDate as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week(TempDate) as Week,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year(TempDate) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Month(TempDate) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Day(TempDate) as Day,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Weekday(TempDate) as WeekDay,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; WeekStart(TempDate) as WeekStart,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Q' &amp;amp; ceil(month(TempDate) / 3) as Quarter,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Q' &amp;amp; Ceil(Month(TempDate)/3) &amp;amp; '-' &amp;amp; Year(TempDate) as QuarterYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(TempDate) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) as WeekYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident TempCalendar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By TempDate ASC;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Tables Temp, TempCalendar;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMinDate = Null();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMaxDate = Null();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887550#M309375</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-19T12:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate Dates fir inline load</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887551#M309376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I dont need a master calendar&lt;/P&gt;&lt;P&gt;i just want to add date to my table, as the number of machines and shifts for every date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887551#M309376</guid>
      <dc:creator>dimak123</dc:creator>
      <dc:date>2015-05-19T12:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate Dates fir inline load</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887552#M309377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For each Machine, shift, production you want to add ~500 days????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887552#M309377</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-19T12:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate Dates fir inline load</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887553#M309378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887553#M309378</guid>
      <dc:creator>dimak123</dc:creator>
      <dc:date>2015-05-19T12:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate Dates fir inline load</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887554#M309379</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;Do you really want to make Cartesian product?&lt;/P&gt;&lt;P&gt;For every Machine and Shift add full range of dates...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so just pick part of master calendar code and JOIN it to your table&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LET vMinDate = Num('01/01/2014');&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LET vMaxDate = Num(Today() - 1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;TempCalendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;JOIN(YourTable)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Date($(vMinDate) + IterNo() - 1) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AutoGenerate 1 While $(vMinDate) + IterNo() -1 &amp;lt;= $(vMaxDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I can't imagine where it could be useful but you are free to choose...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887554#M309379</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-05-19T12:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Autogenerate Dates fir inline load</title>
      <link>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887555#M309380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 12:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autogenerate-Dates-fir-inline-load/m-p/887555#M309380</guid>
      <dc:creator>dimak123</dc:creator>
      <dc:date>2015-05-19T12:42:20Z</dc:date>
    </item>
  </channel>
</rss>

