<?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 bookmark filters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dynamic-bookmark-filters/m-p/541797#M202490</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;I have a single field named Aged, which has several possible values:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;gt; 90, 'Due Now',&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5em; font-size: 10pt;"&gt;if (dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;gt;= 0 AND dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;lt;= 7, 'Due Soon', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;gt;= 8 AND dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;lt;= 14, 'Not Due Yet'&lt;/EM&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;))) AS 'Aged'&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have ten document bookmarks which I want to add the Aged field to, as a filter, but only for two of the possible values - &lt;EM&gt;Due Now&lt;/EM&gt; and &lt;EM&gt;Due Soon&lt;/EM&gt;. Each bookmark also has other bookmark filters - for example, I want one of the ten bookmark to have filters like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Business='Automobiles'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Country='UK'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Aged='Due Now','Due Soon'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The other nine bookmarks would have different values for the &lt;EM&gt;Business&lt;/EM&gt; and &lt;EM&gt;Country&lt;/EM&gt; fields, but I need to add the &lt;EM&gt;Due Now&lt;/EM&gt; and &lt;EM&gt;Due Soon &lt;/EM&gt;values for the &lt;EM&gt;Aged&lt;/EM&gt; field to all ten bookmarks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The underlying data changes every day - for example, the UK Automobiles bookmark could have data that was &lt;EM&gt;Due Now&lt;/EM&gt; or &lt;EM&gt;Due Soon &lt;/EM&gt;yesterday, but no data that is &lt;EM&gt;Due Now&lt;/EM&gt; or &lt;EM&gt;Due Soon &lt;/EM&gt;today, which means I cannot add the &lt;EM&gt;Due Now&lt;/EM&gt; and &lt;EM&gt;Due Soon &lt;/EM&gt;values as "regular" bookmark filters because if no data is found that is either &lt;EM&gt;Due Now&lt;/EM&gt; or &lt;EM&gt;Due Soon&lt;/EM&gt;, Qlikview will clear the other filters (&lt;EM&gt;Business&lt;/EM&gt; and &lt;EM&gt;Country&lt;/EM&gt;, in this case) in order to return data. I need a way to add the &lt;EM&gt;Due Now&lt;/EM&gt; and &lt;EM&gt;Due Soon &lt;/EM&gt;values as filters without the risk of losing the other bookmark filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to set a dynamic bookmark filter in this situation? Some way of determining - before the bookmark is run - whether or not &lt;EM&gt;Due Now&lt;/EM&gt; or &lt;EM&gt;Due Soon&lt;/EM&gt; data exists in each case? Perhaps as code in the load script, or as a variable? The ten bookmarks are also attached to alerts, so could something be done within the Message expression in the Alerts dialog for each bookmark?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 12:55:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-28T12:55:16Z</dc:date>
    <item>
      <title>dynamic bookmark filters</title>
      <link>https://community.qlik.com/t5/QlikView/dynamic-bookmark-filters/m-p/541797#M202490</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;I have a single field named Aged, which has several possible values:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;gt; 90, 'Due Now',&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="line-height: 1.5em; font-size: 10pt;"&gt;if (dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;gt;= 0 AND dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;lt;= 7, 'Due Soon', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;gt;= 8 AND dayStart(timestamp(DUEDATE)) - dayStart(Today()) &amp;lt;= 14, 'Not Due Yet'&lt;/EM&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;))) AS 'Aged'&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have ten document bookmarks which I want to add the Aged field to, as a filter, but only for two of the possible values - &lt;EM&gt;Due Now&lt;/EM&gt; and &lt;EM&gt;Due Soon&lt;/EM&gt;. Each bookmark also has other bookmark filters - for example, I want one of the ten bookmark to have filters like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Business='Automobiles'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Country='UK'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Aged='Due Now','Due Soon'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The other nine bookmarks would have different values for the &lt;EM&gt;Business&lt;/EM&gt; and &lt;EM&gt;Country&lt;/EM&gt; fields, but I need to add the &lt;EM&gt;Due Now&lt;/EM&gt; and &lt;EM&gt;Due Soon &lt;/EM&gt;values for the &lt;EM&gt;Aged&lt;/EM&gt; field to all ten bookmarks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The underlying data changes every day - for example, the UK Automobiles bookmark could have data that was &lt;EM&gt;Due Now&lt;/EM&gt; or &lt;EM&gt;Due Soon &lt;/EM&gt;yesterday, but no data that is &lt;EM&gt;Due Now&lt;/EM&gt; or &lt;EM&gt;Due Soon &lt;/EM&gt;today, which means I cannot add the &lt;EM&gt;Due Now&lt;/EM&gt; and &lt;EM&gt;Due Soon &lt;/EM&gt;values as "regular" bookmark filters because if no data is found that is either &lt;EM&gt;Due Now&lt;/EM&gt; or &lt;EM&gt;Due Soon&lt;/EM&gt;, Qlikview will clear the other filters (&lt;EM&gt;Business&lt;/EM&gt; and &lt;EM&gt;Country&lt;/EM&gt;, in this case) in order to return data. I need a way to add the &lt;EM&gt;Due Now&lt;/EM&gt; and &lt;EM&gt;Due Soon &lt;/EM&gt;values as filters without the risk of losing the other bookmark filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to set a dynamic bookmark filter in this situation? Some way of determining - before the bookmark is run - whether or not &lt;EM&gt;Due Now&lt;/EM&gt; or &lt;EM&gt;Due Soon&lt;/EM&gt; data exists in each case? Perhaps as code in the load script, or as a variable? The ten bookmarks are also attached to alerts, so could something be done within the Message expression in the Alerts dialog for each bookmark?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 12:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamic-bookmark-filters/m-p/541797#M202490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-28T12:55:16Z</dc:date>
    </item>
  </channel>
</rss>

