<?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 Selecting multiple field values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-field-values/m-p/816131#M287832</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'm looking to allow users to filter their selection based on the datetime ranges they specify. The dashboard has been developed to allow users to define up to ten datetime ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, let's say a user wishes to filter their data based on the following two datetime ranges they've input. (I've used the timestamp format 'YYYY-MM-DD hh:mm:ss'):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Range 1: 2015-02-16 17:00:00 to 2015-02-16 18:00:00&lt;/P&gt;&lt;P&gt;Range 2: 2015-02-16 19:00:00 to 2015-02-16 20:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attempted to build a Search string that will work with the Select in Field button action (the field being "timestamp") but I'm finding that beyond a certain level of complexity, the Search string fails to apply any filtering the data. The point of failure appears to be when I incorporate 'less than' / 'greater than' operators into the Search string, instead of specifying only one value each side of the pipe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the field value has a space between the date and time, I've included quotation marks around the values - which I've linked to variables - but this hasn't resolved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example Search string that appears to be failing is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'(&amp;gt;=' &amp;amp; vStarttimestamp1 &amp;amp; '&amp;lt;=' &amp;amp; vEndtimestamp1 &amp;amp; '|' &amp;amp; '&amp;gt;=' &amp;amp; vStarttimestamp2 &amp;amp; '&amp;lt;=' &amp;amp; vEndtimestamp2 &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;P&gt;vStarttimestamp1 = 2015-02-16 17:00:00&lt;/P&gt;&lt;P&gt;vEndtimestamp1 = 2015-02-16 18:00:00&lt;/P&gt;&lt;P&gt;vStarttimestamp2 = 2015-02-16 19:00:00&lt;/P&gt;&lt;P&gt;vEndtimestamp2 = 2015-02-16 20:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The string works when I'm looking to filter across only dates (i.e. ignoring the time element) so it appears the datetime field is the cause of the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grateful for your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2015 20:05:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-16T20:05:41Z</dc:date>
    <item>
      <title>Selecting multiple field values</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-field-values/m-p/816131#M287832</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'm looking to allow users to filter their selection based on the datetime ranges they specify. The dashboard has been developed to allow users to define up to ten datetime ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, let's say a user wishes to filter their data based on the following two datetime ranges they've input. (I've used the timestamp format 'YYYY-MM-DD hh:mm:ss'):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Range 1: 2015-02-16 17:00:00 to 2015-02-16 18:00:00&lt;/P&gt;&lt;P&gt;Range 2: 2015-02-16 19:00:00 to 2015-02-16 20:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attempted to build a Search string that will work with the Select in Field button action (the field being "timestamp") but I'm finding that beyond a certain level of complexity, the Search string fails to apply any filtering the data. The point of failure appears to be when I incorporate 'less than' / 'greater than' operators into the Search string, instead of specifying only one value each side of the pipe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the field value has a space between the date and time, I've included quotation marks around the values - which I've linked to variables - but this hasn't resolved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example Search string that appears to be failing is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'(&amp;gt;=' &amp;amp; vStarttimestamp1 &amp;amp; '&amp;lt;=' &amp;amp; vEndtimestamp1 &amp;amp; '|' &amp;amp; '&amp;gt;=' &amp;amp; vStarttimestamp2 &amp;amp; '&amp;lt;=' &amp;amp; vEndtimestamp2 &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;P&gt;vStarttimestamp1 = 2015-02-16 17:00:00&lt;/P&gt;&lt;P&gt;vEndtimestamp1 = 2015-02-16 18:00:00&lt;/P&gt;&lt;P&gt;vStarttimestamp2 = 2015-02-16 19:00:00&lt;/P&gt;&lt;P&gt;vEndtimestamp2 = 2015-02-16 20:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The string works when I'm looking to filter across only dates (i.e. ignoring the time element) so it appears the datetime field is the cause of the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grateful for your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 20:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-multiple-field-values/m-p/816131#M287832</guid>
      <dc:creator />
      <dc:date>2015-02-16T20:05:41Z</dc:date>
    </item>
  </channel>
</rss>

