<?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 How to generate Date? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-generate-Date/m-p/332757#M1277410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a newbie i'm really having challenges generating a simpe date(month &amp;amp; year). I have a sort of Date named Date purchased in the excel data and it has only three records i.e 26/07/2011, 29/09/2011 and 13/12/2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How then can i generate a date useful enough for my analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>How to generate Date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-Date/m-p/332757#M1277410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a newbie i'm really having challenges generating a simpe date(month &amp;amp; year). I have a sort of Date named Date purchased in the excel data and it has only three records i.e 26/07/2011, 29/09/2011 and 13/12/2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How then can i generate a date useful enough for my analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-Date/m-p/332757#M1277410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>How to generate Date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-Date/m-p/332758#M1277412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not really sure what is useful enough for your analysis, do you mean that you need more than 3 dates?&lt;/P&gt;&lt;P&gt;There are several samples here in the forum how to generate e.g. a master calendar, or how to fill up missing records between dates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to create a month and year field from your date field, you could use date / time functions like month() and year() or monthname():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set DateFormat = 'DD/MM/YYYY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Date Purchased],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Year([Date Purchased]) as Year,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Month([Date Purchased]) as Month,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Monthname([Date Purchased]) as MonthName&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date Purchased&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;26/07/2011 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;29/09/2011&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;13/12/2011&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 01:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-Date/m-p/332758#M1277412</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-02T01:43:20Z</dc:date>
    </item>
    <item>
      <title>How to generate Date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-Date/m-p/332759#M1277414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swuehl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks a million but then how can i fill the missing records between dates.Let's say generate from "01/01/2011 to 31/12/2011"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 07:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-Date/m-p/332759#M1277414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-02T07:10:17Z</dc:date>
    </item>
    <item>
      <title>How to generate Date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-Date/m-p/332760#M1277418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use the concept of a master calendar, you could write some lines like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set DateFormat = 'DD/MM/YYYY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Date Purchased],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Date Purchased] as Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date Purchased&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;26/07/2011&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;29/09/2011&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;13/12/2011&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Year(Date) as Year,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Month(Date) as Month,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Monthname(Date) as MonthName;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;date(makedate(2011)+recno()-1) as Date&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;AutoGenerate 365;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lines in bold are creating all the dates for the year 2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fill in missing records in your original table, you could also look e.g. into the QV cookbook, example titled "Fill values in a data range using previous values." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can download the cookbook from&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/Download.html"&gt;http://robwunderlich.com/Download.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 13:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-Date/m-p/332760#M1277418</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-02T13:01:44Z</dc:date>
    </item>
  </channel>
</rss>

