<?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 Help needed to create a calendar object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-to-create-a-calendar-object/m-p/187226#M50993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked, but is there a way to make it coorespond with the days of a week? Just like you'd see in a date drop down?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2009 03:44:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-15T03:44:47Z</dc:date>
    <item>
      <title>Help needed to create a calendar object</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-create-a-calendar-object/m-p/187224#M50991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there someone out there with code to create a calendar where after you select a year and month a list of days appears? What I am looking for is similar to what we would normally see on the internet when we click on a calendar object. Does this make any sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 00:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-create-a-calendar-object/m-p/187224#M50991</guid>
      <dc:creator />
      <dc:date>2009-12-15T00:43:58Z</dc:date>
    </item>
    <item>
      <title>Help needed to create a calendar object</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-create-a-calendar-object/m-p/187225#M50992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Calendar]:&lt;BR /&gt;LOAD&lt;BR /&gt; year(Date) as Year&lt;BR /&gt;,month(Date) as Month&lt;BR /&gt;,day(Date) as Day&lt;BR /&gt;;&lt;BR /&gt;LOAD date(recno()+date#('20061231','YYYYMMDD')) as Date&lt;BR /&gt;AUTOGENERATE today()-date#('20061231','YYYYMMDD')&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Note that I normally don't have a Day field. I just use the Date. Also, I usually define my Year and Month fields like this instead:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Calendar]:&lt;BR /&gt;LOAD&lt;BR /&gt; date(yearstart(Date),'YYYY') as Year&lt;BR /&gt;,date(monthstart(Date),'MMM YY') as Month&lt;BR /&gt;;&lt;BR /&gt;LOAD date(recno()+date#('20061231','YYYYMMDD')) as Date&lt;BR /&gt;AUTOGENERATE today()-date#('20061231','YYYYMMDD')&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;The first approach allows you to compare the same days across months, or the same months across years. The second approach makes the Month a continuous dimension that includes the Year. It also allows you to use date functions on all your date-related fields. Neither is correct or incorrect. They just have different uses. You can even use both in an application. I've just found myself always using the second approach, and never using the first, and that being most useful for the data I'm playing with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 01:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-create-a-calendar-object/m-p/187225#M50992</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-15T01:28:54Z</dc:date>
    </item>
    <item>
      <title>Help needed to create a calendar object</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-create-a-calendar-object/m-p/187226#M50993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked, but is there a way to make it coorespond with the days of a week? Just like you'd see in a date drop down?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 03:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-create-a-calendar-object/m-p/187226#M50993</guid>
      <dc:creator />
      <dc:date>2009-12-15T03:44:47Z</dc:date>
    </item>
    <item>
      <title>Help needed to create a calendar object</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-create-a-calendar-object/m-p/187227#M50994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add this code to John's above to get the days of the week:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;weekday(Date) as WeekDay,&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 04:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-create-a-calendar-object/m-p/187227#M50994</guid>
      <dc:creator />
      <dc:date>2009-12-15T04:35:50Z</dc:date>
    </item>
  </channel>
</rss>

