<?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: How to set a default date for Calendar object? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150228#M28286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EDIT: Found the problem. Source data date field is a timestamp. I hadn't added floor to the date, so was being stored with timestamps but was not displaying with times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Rob, QV learner here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That link worked for me, however, it removed all entries from the table except for a single matched instance of the day I wanted (yesterday).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I do have a key, 2 in fact, but I seem to lose the relationship between those dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add 2 select fields for month and day, and manually choose yesteErday, again, I lose table entries except one instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am using a table box as it is supporting data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 04:48:42 GMT</pubDate>
    <dc:creator>timmarsh</dc:creator>
    <dc:date>2016-08-10T04:48:42Z</dc:date>
    <item>
      <title>How to set a default date for Calendar object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150220#M28278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;Is there a way to set an initial/default date to the Calendar Object?&lt;/P&gt;&lt;P&gt;Ie. When I open up the .qvw file, Iike the Date to be pre-selected to TODAY's date?&lt;/P&gt;&lt;P&gt;Thank-you for your support.&lt;/P&gt;&lt;P&gt;- Simon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 01:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150220#M28278</guid>
      <dc:creator />
      <dc:date>2009-07-24T01:02:38Z</dc:date>
    </item>
    <item>
      <title>How to set a default date for Calendar object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150221#M28279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simon,&lt;/P&gt;&lt;P&gt;I don't believe there is a way to set default values for any field, including a calendar object, which is unfortunate. The only way I know of to accomplish what you want is to have a macro that makes that selection for you when the document loads, or when you enter a tab. I don't remember the exact syntax off the top of my head, but it is something like:&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Date").Select today()&lt;/P&gt;&lt;P&gt;You may be able to do a similar thing with a bookmark, which would be preferable to a macro as macros are single-threaded.&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;sjprows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 01:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150221#M28279</guid>
      <dc:creator />
      <dc:date>2009-07-24T01:49:24Z</dc:date>
    </item>
    <item>
      <title>How to set a default date for Calendar object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150222#M28280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar to sjprows' suggestion, you could use a Trigger instead of a macro. You could set a Trigger for OnOpen and make the Today() selection in your date field. I believe Triggers are the preferred solution to some of the issues with using macros. Triggers are only available in QlikView 9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 01:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150222#M28280</guid>
      <dc:creator />
      <dc:date>2009-07-24T01:58:14Z</dc:date>
    </item>
    <item>
      <title>How to set a default date for Calendar object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150223#M28281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can base your calendar value on a variable. e.g. TodayDateVar&lt;/P&gt;&lt;P&gt;This variable will be equal to today() (In variables window add TodayDateVar = Date(Today())&lt;BR /&gt;So when you open your application your variable will take your value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 03:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150223#M28281</guid>
      <dc:creator />
      <dc:date>2009-07-24T03:29:00Z</dc:date>
    </item>
    <item>
      <title>How to set a default date for Calendar object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150224#M28282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got a step by step procedure for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 19:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150224#M28282</guid>
      <dc:creator />
      <dc:date>2012-01-20T19:06:40Z</dc:date>
    </item>
    <item>
      <title>How to set a default date for Calendar object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150225#M28283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://qlikviewnotes.blogspot.com/2011/12/initial-selections-and-current.html"&gt;http://qlikviewnotes.blogspot.com/2011/12/initial-selections-and-current.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 20:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150225#M28283</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-01-20T20:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default date for Calendar object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150226#M28284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I personally like the behavior of the below, but it depends on your reload frequency.&amp;nbsp; It resets the slider to today's date with each reload.&amp;nbsp; The user can then choose a different date between the min/max options.&amp;nbsp; This looks like it's working for me, but if there is a different better option, please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;in the load script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;BDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MinDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;EDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;MaxDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; your table;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vMinDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('MinDate', 0, 'MinMax')); &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('MaxDate', 0, 'MinMax')); &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LET&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vToday&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In the calendar slider properties:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set variable = vToday&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;set min and max equal to vMinDate and vMaxDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150226#M28284</guid>
      <dc:creator />
      <dc:date>2013-09-19T15:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default date for Calendar object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150227#M28285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;it is simple, by assigning calendar object variable to reload time date and saving the application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;For eg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;vCalendarDate=date (reload ())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;(And giving the max value of calendar object to date of reload time)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 11:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150227#M28285</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2013-10-31T11:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default date for Calendar object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150228#M28286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EDIT: Found the problem. Source data date field is a timestamp. I hadn't added floor to the date, so was being stored with timestamps but was not displaying with times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Rob, QV learner here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That link worked for me, however, it removed all entries from the table except for a single matched instance of the day I wanted (yesterday).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I do have a key, 2 in fact, but I seem to lose the relationship between those dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add 2 select fields for month and day, and manually choose yesteErday, again, I lose table entries except one instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am using a table box as it is supporting data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 04:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-date-for-Calendar-object/m-p/150228#M28286</guid>
      <dc:creator>timmarsh</dc:creator>
      <dc:date>2016-08-10T04:48:42Z</dc:date>
    </item>
  </channel>
</rss>

