<?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 Dynamic date selection using bookmarks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-date-selection-using-bookmarks/m-p/297781#M499070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; try something like this in the search box, replace "Timestamp" with the name of your date field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(floor(Timestamp)&amp;gt;floor(today(2)-8) and floor(Timestamp)&amp;lt;floor(today(2))&amp;nbsp; ,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the parameter 2 inside the today() function means it will take the time teh document was opened so it shouldn(t be constantly evaluating itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another alternative is to set a vraible i your script - especailly if the data is getting reloaded everyday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the floor() functions get around problems caused by formatting and the bits of days you get in timestamps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2011 13:40:36 GMT</pubDate>
    <dc:creator>pat_agen</dc:creator>
    <dc:date>2011-06-17T13:40:36Z</dc:date>
    <item>
      <title>Dynamic date selection using bookmarks</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-date-selection-using-bookmarks/m-p/297778#M499067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to include a variable date selection in a bookmark ?&lt;/P&gt;&lt;P&gt;We have a Qlikview file that contain dates and registered hours for a number of people.&lt;/P&gt;&lt;P&gt;On a weekly basis, registered hours are analysed.&lt;/P&gt;&lt;P&gt;We want to create a bookmark that will select the following date range :&lt;/P&gt;&lt;P&gt;=&amp;gt; Select last week (7 days starting from yesterday)&lt;/P&gt;&lt;P&gt;=&amp;gt; Select from beginning of the month untill yesterday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it be achieved using a bookmark ?&lt;/P&gt;&lt;P&gt;I do not want to use set analysis as I want the selection to be valid for my complete QV file.&lt;/P&gt;&lt;P&gt;Setting the date range using a macro function is not really an option as different scenario's may exist (beginning of month, last week, last fortnight, ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 09:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-date-selection-using-bookmarks/m-p/297778#M499067</guid>
      <dc:creator />
      <dc:date>2011-06-17T09:15:26Z</dc:date>
    </item>
    <item>
      <title>Dynamic date selection using bookmarks</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-date-selection-using-bookmarks/m-p/297779#M499068</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;are you able to write the code for your two selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you can do this try the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click on a list box containing your dates. Click on search or just start typing. Make sure your search query begins with the equal sign "=" followed by the code for your select. You will know if it is working because the corrcet dates will be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save this as your bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qv will store your search query in the boomark and not the dimesnion elements this returns. thus making your bookmark dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check this open a current selections object and select your bookmark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 09:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-date-selection-using-bookmarks/m-p/297779#M499068</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-06-17T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Dynamic date selection using bookmarks</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-date-selection-using-bookmarks/m-p/297780#M499069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My formula should be something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;lt;today()-1 &amp;gt; today()-8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, even the function = today() selects too much data. I would expect the system to select only today's date in this case but it doesn't. I want to select all the dates between yesterday and 7 days before yesterday by means of a dynamic select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 12:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-date-selection-using-bookmarks/m-p/297780#M499069</guid>
      <dc:creator />
      <dc:date>2011-06-17T12:53:45Z</dc:date>
    </item>
    <item>
      <title>Dynamic date selection using bookmarks</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-date-selection-using-bookmarks/m-p/297781#M499070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; try something like this in the search box, replace "Timestamp" with the name of your date field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(floor(Timestamp)&amp;gt;floor(today(2)-8) and floor(Timestamp)&amp;lt;floor(today(2))&amp;nbsp; ,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the parameter 2 inside the today() function means it will take the time teh document was opened so it shouldn(t be constantly evaluating itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another alternative is to set a vraible i your script - especailly if the data is getting reloaded everyday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the floor() functions get around problems caused by formatting and the bits of days you get in timestamps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 13:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-date-selection-using-bookmarks/m-p/297781#M499070</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-06-17T13:40:36Z</dc:date>
    </item>
  </channel>
</rss>

