<?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: Including variable in bookmark in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590975#M219190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression is using today() to determine the date range, and this is probably not affected by your new data set.&lt;/P&gt;&lt;P&gt;You would need to wait some time to create a different date range in your search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing, you can try using the max date in your data instead of today().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=DateField&amp;lt;monthstart(may({1} total DateField)) and DateField &amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;monthstart(may({1} total DateField),-13)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 18:44:51 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2014-04-17T18:44:51Z</dc:date>
    <item>
      <title>Including variable in bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590972#M219187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having some trouble including a variable in a bookmark. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set of ticket data, with date fields.&amp;nbsp; I want the bookmark, which will have other selections I'll specify to create the bookmark, to pull the last 12 months of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; The month is April 2014.&amp;nbsp; I want to click the bookmark and have it apply the filters I had selected, but also pull all incidents from March 2013 through March 2014. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are now in May 2014, I want to click the bookmark and have it apply the filters I had selected, but also pull all incidents from April 2013 through April 2014.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 15:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590972#M219187</guid>
      <dc:creator />
      <dc:date>2014-04-17T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Including variable in bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590973#M219188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a search expression to select your Month field, where you use the current date to derive the selection from, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=DateField&amp;lt;monthstart(today()) and DateField &amp;gt;=monthstart(today(),-13)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter something like this in the search bar of your DateField field, this should select the appropriate range.&lt;/P&gt;&lt;P&gt;If you then create a bookmark, you are actually bookmarking the search, so when you call the bookmark next month, the range will be adapted accordingly using the date you are calling the bookmark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 18:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590973#M219188</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-17T18:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Including variable in bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590974#M219189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This did not quite work. &lt;/P&gt;&lt;P&gt;I took the formula you provided and substituted my date field( [Submit Date] ).&amp;nbsp; I placed this as an expression of a list box and as a search object.&amp;nbsp; When I placed it in the expression for the list box it pulled the previous 13 months which is good.&amp;nbsp; It pulled March 2013 to March 2014.&amp;nbsp; I created and saved a bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then added new "sample" data for April 2014 to simulate the passing of a month, so that we are looking for April 2013 to April 2014.&amp;nbsp; I refreshed the app, and the bookmark still pulls March 2013 to March 2014.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 18:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590974#M219189</guid>
      <dc:creator />
      <dc:date>2014-04-17T18:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Including variable in bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590975#M219190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression is using today() to determine the date range, and this is probably not affected by your new data set.&lt;/P&gt;&lt;P&gt;You would need to wait some time to create a different date range in your search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing, you can try using the max date in your data instead of today().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=DateField&amp;lt;monthstart(may({1} total DateField)) and DateField &amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;monthstart(may({1} total DateField),-13)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 18:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590975#M219190</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-17T18:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Including variable in bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590976#M219191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, something is wrong with that syntax.&amp;nbsp; Not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;=[Submit Date]&amp;lt; monthstart(max([Submit Date])) and [Submit Date] &amp;gt;=monthstart(max([Submit Date]),-13)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No errors, but the list box returned no values when I put it in as an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 19:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590976#M219191</guid>
      <dc:creator />
      <dc:date>2014-04-17T19:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Including variable in bookmark</title>
      <link>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590977#M219192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably corrected my typo, should be max() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;=DateField&amp;lt;monthstart(max({1} total DateField)) and DateField &amp;gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;monthstart(max({1} total DateField),-13)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 19:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-variable-in-bookmark/m-p/590977#M219192</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-17T19:21:38Z</dc:date>
    </item>
  </channel>
</rss>

