<?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: Re: Choosing all records where selected date is within a range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663383#M241674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jelco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No calendar. Lowest date level is day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example with limited subset of data is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 13:36:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-12T13:36:28Z</dc:date>
    <item>
      <title>Choosing all records where selected date is within a range</title>
      <link>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663379#M241670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set of records where each record has a VALIDFROM and VALIDTO date. My requirement is to be able to select a date from the UI and have all records where that date falls between VALIDFROM and VALIDTO displayed in a straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been trying with an input box, variable and onchange trigger actions to select field values on VALIDFROM and VALIDTO, but not working as I expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&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;Rory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663379#M241670</guid>
      <dc:creator />
      <dc:date>2014-08-12T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing all records where selected date is within a range</title>
      <link>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663380#M241671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;He Rory,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about this solution using calender objects.&lt;/P&gt;&lt;P&gt;Let me know if you have any problems converting it to your app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663380#M241671</guid>
      <dc:creator />
      <dc:date>2014-08-12T09:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing all records where selected date is within a range</title>
      <link>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663381#M241672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jelco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That certainly gives me some pointers. but the example you've provided has one date in the datamodel (HistoricalDate) and the two variables created by the calendar are used in a 'greater than/less than setup'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two date fields I need to select on (VALIDFROM and VALIDTO) and I only want to select one date. So my selected value needs to lie between VALIDFROM and VALIDTO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALIDFROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALIDTO&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31/12/2010&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/04/2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31/03/2011&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31/12/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select date 01/03/2010 then I only want record A displayed. Select 07/04/2010 then records A and B displayed. 23/02/2011; records B and C displayed.&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;Rory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 09:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663381#M241672</guid>
      <dc:creator />
      <dc:date>2014-08-12T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing all records where selected date is within a range</title>
      <link>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663382#M241673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a calender in your script?&lt;/P&gt;&lt;P&gt;What is the lowest date aggregation in your model? (Day/Week/Month)&lt;/P&gt;&lt;P&gt;I would suggest you convert the valdifrom and validto too a datekey which you can use dynamicly in the GUI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it posible to upload a snapshot of your datamodel (table viewer?. The script or qvw would even be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greets,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jelco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663382#M241673</guid>
      <dc:creator />
      <dc:date>2014-08-12T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Choosing all records where selected date is within a range</title>
      <link>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663383#M241674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jelco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No calendar. Lowest date level is day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example with limited subset of data is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663383#M241674</guid>
      <dc:creator />
      <dc:date>2014-08-12T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing all records where selected date is within a range</title>
      <link>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663384#M241675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about pulling &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VALIDFROM into a data island (separate table) and then make your selections on the new field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then in your table use if(NewField &amp;lt;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VALIDFROM&lt;/SPAN&gt;, (do calculation)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663384#M241675</guid>
      <dc:creator />
      <dc:date>2014-08-12T13:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing all records where selected date is within a range</title>
      <link>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663385#M241676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry - being a bit dim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give me a worked example on what you mean?&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;Rory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663385#M241676</guid>
      <dc:creator />
      <dc:date>2014-08-14T13:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing all records where selected date is within a range</title>
      <link>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663386#M241677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for the record, I found a solution for this, although I doubt it's the most elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a calendar input box I am able to select a date.&lt;/P&gt;&lt;P&gt;I put this date into a variable (vDate).&lt;/P&gt;&lt;P&gt;Use this variable in a calculated dimension in my straight table. If ValidFrom &amp;lt;= vDate and ValidTo &amp;gt;= vDate then resolve to a 1, else a null.&lt;/P&gt;&lt;P&gt;Suppress null values on this dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there are better ways, but this gives the me the result I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Choosing-all-records-where-selected-date-is-within-a-range/m-p/663386#M241677</guid>
      <dc:creator />
      <dc:date>2014-09-17T13:24:19Z</dc:date>
    </item>
  </channel>
</rss>

