<?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 How to avoid an empty set when working through a date range? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-avoid-an-empty-set-when-working-through-a-date-range/m-p/413166#M568129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Pulling data from a table that has values for all fields for every day within a range, with the exception of one day which has no associated data; you can assume in my scenario DATA_TS is primary key for all data.&amp;nbsp; Under this condition when I hit a defined PREV Button on my dashboard to bring up a previous days worth of data, everything is fine as long as previous day is not the empty one.&amp;nbsp; If it is the empty one my PREV Button does nothing and I am stuck on the current day of data.&amp;nbsp; The PREV Button is defined with a "Select in Field" action of =&lt;SPAN style="color: #0000ff;"&gt;DATE&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;MAX&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;DATA_TS&lt;/SPAN&gt;)-1)&amp;nbsp; -- this is to move me backwards one day at a time.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Additionally, If I actually select this empty day with my Calendar Object it seems to corrupt all current selections given me strange results on my dashboard.&amp;nbsp; How can I exclude my PREV Button from selecting empty dates, i.e. dates that have no associated data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;To take it one step further, how can I lock out any empty set from being selected in my calendar object?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lew Goldstein&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2012 20:11:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-07T20:11:05Z</dc:date>
    <item>
      <title>How to avoid an empty set when working through a date range?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-avoid-an-empty-set-when-working-through-a-date-range/m-p/413166#M568129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Pulling data from a table that has values for all fields for every day within a range, with the exception of one day which has no associated data; you can assume in my scenario DATA_TS is primary key for all data.&amp;nbsp; Under this condition when I hit a defined PREV Button on my dashboard to bring up a previous days worth of data, everything is fine as long as previous day is not the empty one.&amp;nbsp; If it is the empty one my PREV Button does nothing and I am stuck on the current day of data.&amp;nbsp; The PREV Button is defined with a "Select in Field" action of =&lt;SPAN style="color: #0000ff;"&gt;DATE&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;MAX&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;DATA_TS&lt;/SPAN&gt;)-1)&amp;nbsp; -- this is to move me backwards one day at a time.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Additionally, If I actually select this empty day with my Calendar Object it seems to corrupt all current selections given me strange results on my dashboard.&amp;nbsp; How can I exclude my PREV Button from selecting empty dates, i.e. dates that have no associated data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;To take it one step further, how can I lock out any empty set from being selected in my calendar object?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lew Goldstein&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 20:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-avoid-an-empty-set-when-working-through-a-date-range/m-p/413166#M568129</guid>
      <dc:creator />
      <dc:date>2012-11-07T20:11:05Z</dc:date>
    </item>
  </channel>
</rss>

