<?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: button to set date = today() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/button-to-set-date-today/m-p/277190#M708524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have attached a QVD with the expressions you were looking for. Will be completely honest &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I've never done this before so my method is probably crude. It does rely on you having a calendar in place with the different dimensions that you want to measure. Let me know if this is what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2011 09:13:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-23T09:13:47Z</dc:date>
    <item>
      <title>button to set date = today()</title>
      <link>https://community.qlik.com/t5/QlikView/button-to-set-date-today/m-p/277188#M708521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - hopefully a quick one! I have a date range slider which is working nicely. I also have manual date select lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to put a few buttons on the dashboard saying "today", "this week", "last week", "this month", "last month" and "this year".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this best to do? Maybe assign a macro for each one? If so, is there any where I can research how to write the macro? I did have a go, but nothing seemed to work!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any info &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 09:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/button-to-set-date-today/m-p/277188#M708521</guid>
      <dc:creator />
      <dc:date>2011-09-21T09:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: button to set date = today()</title>
      <link>https://community.qlik.com/t5/QlikView/button-to-set-date-today/m-p/277189#M708522</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;create a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add an action "Set Variable". Name the variable vToday and add the following code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=Today(2)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should do the same with a trigger On Open, to be sure the variable is setted when you open the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 10:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/button-to-set-date-today/m-p/277189#M708522</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2011-09-21T10:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: button to set date = today()</title>
      <link>https://community.qlik.com/t5/QlikView/button-to-set-date-today/m-p/277190#M708524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have attached a QVD with the expressions you were looking for. Will be completely honest &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I've never done this before so my method is probably crude. It does rely on you having a calendar in place with the different dimensions that you want to measure. Let me know if this is what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Byron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 09:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/button-to-set-date-today/m-p/277190#M708524</guid>
      <dc:creator />
      <dc:date>2011-09-23T09:13:47Z</dc:date>
    </item>
    <item>
      <title>button to set date = today()</title>
      <link>https://community.qlik.com/t5/QlikView/button-to-set-date-today/m-p/277191#M708525</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;Maybe also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;today:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;create a button&lt;/LI&gt;&lt;LI&gt;select in field&lt;/LI&gt;&lt;LI&gt;= today()&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to select a whole week, I think you need to create extra fields in your table. Like weekstart(yourdate) to get all the dates belonging to 1 week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;create a button&lt;/LI&gt;&lt;LI&gt;select in field (your&amp;nbsp; new weekstart field)&lt;/LI&gt;&lt;LI&gt;= weekstart(today())&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 09:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/button-to-set-date-today/m-p/277191#M708525</guid>
      <dc:creator />
      <dc:date>2011-09-23T09:22:40Z</dc:date>
    </item>
  </channel>
</rss>

