<?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 Selection of fields between 2 dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210522#M65078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am on QlikView 9 - my only other small issue at the moment is the Date Selection is selecting the date in a number format, have I missed something to change it back to a date format? Otherwise your example is perfect!&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2009 18:16:10 GMT</pubDate>
    <dc:creator>Dayna</dc:creator>
    <dc:date>2009-10-08T18:16:10Z</dc:date>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210514#M65070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am hoping that someone here could help me please?&lt;BR /&gt;No doubt this will be an easy one... How do I show a selection of fields between two dates?&lt;/P&gt;&lt;P&gt;I was thinking set analysis, create 2 data islands of my date field, and then something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;({&amp;lt;&lt;B&gt;[Due Date]&lt;/B&gt; = {&lt;B&gt;"&amp;lt;=$([Due Date1])&amp;gt;=$([Due Date2])"&lt;/B&gt;}&amp;gt;} &lt;B&gt;[Qty Ord])&lt;/B&gt;&lt;/P&gt;&lt;P&gt;But unsure on how to do this without using sum... I just want to show the fields between the date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're help would be appreciated!&lt;/P&gt;&lt;P&gt;Kind Regards.&lt;BR /&gt;Dayna&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 23:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210514#M65070</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2009-10-07T23:16:46Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210515#M65071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dayna,&lt;/P&gt;&lt;P&gt;I did something like this a few days ago using macros.&lt;/P&gt;&lt;P&gt;When the user selects a range in a field (data), I select the highest possible date on a secondfield (ClusterDate)&lt;/P&gt;&lt;P&gt;I used: ActiveDocument.GetField(&lt;I&gt;Field&lt;/I&gt;).Select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may change the syntax according to your need. See examples from the APIGuide below&lt;/P&gt;&lt;P&gt;you can also see my example attached&lt;/P&gt;&lt;P&gt;--------------------------------------------------&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Month").Select "September"&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.Fields("Month").Select "J*"&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.Fields("Sales").Select "&amp;gt;1500"&lt;BR /&gt;--------------------------------------------------&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 00:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210515#M65071</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2009-10-08T00:18:17Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210516#M65072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please have a look at the attached example&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/4024.Demo_5F00_SelectingTwoValues.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/4024.Demo_5F00_SelectingTwoValues.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have added two triggers for the OnChange-event of the two variables&lt;/LI&gt;&lt;LI&gt;In both cases the following code will be executed:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub filterDateRange&lt;BR /&gt;Dim vDate1&lt;BR /&gt;Dim vDate2&lt;BR /&gt;Dim intDate1&lt;BR /&gt;dim intDate2&lt;BR /&gt;dim selection&lt;BR /&gt;&lt;BR /&gt;vDate1 = ActiveDocument.Variables("vDateSelection1").GetContent.String&lt;BR /&gt;vDate2 = ActiveDocument.Variables("vDateSelection2").GetContent.String&lt;BR /&gt;intDate1 = ActiveDocument.Evaluate("=num('$(vDateSelection1)')")&lt;BR /&gt;intDate2 = ActiveDocument.Evaluate("=num('$(vDateSelection2)')")&lt;BR /&gt;'check if the second date is before the first date&lt;BR /&gt;if (intDate2 &amp;lt; intDate1) then&lt;BR /&gt; msgbox("Date 2 must not be before Date 1")&lt;BR /&gt; ActiveDocument.Variables("vDateSelection2").SetContent "" &amp;amp; vDate1 &amp;amp; "", false&lt;BR /&gt; exit sub&lt;BR /&gt;&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;selection = "&amp;gt;" &amp;amp; vDate1 &amp;amp; "&amp;lt;" &amp;amp; vDate2&lt;BR /&gt;ActiveDocument.Fields("DateField").Select selection&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps ...&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/4024.Demo_5F00_SelectingTwoValues.jpg"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 03:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210516#M65072</guid>
      <dc:creator />
      <dc:date>2009-10-08T03:20:04Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210517#M65073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to my previously posted solution with macros you could also use a formula to display your desired fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(DateField &amp;gt; vDateSelection1 and DateField &amp;lt; vDateSelection2, DateField)&lt;/P&gt;&lt;P&gt;or for using an other field&lt;/P&gt;&lt;P&gt;=if(DateField &amp;gt; vDateSelection1 and DateField &amp;lt; vDateSelection2, OtherField)&lt;/P&gt;&lt;P&gt;Please have again a look at the updated example (attached file).&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 03:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210517#M65073</guid>
      <dc:creator />
      <dc:date>2009-10-08T03:43:42Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210518#M65074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, adding the attachmet does not work at the moment (I receive a timeout error of the forum), so another try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 03:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210518#M65074</guid>
      <dc:creator />
      <dc:date>2009-10-08T03:45:43Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210519#M65075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, upload of documents in this forum is broken:&lt;/P&gt;&lt;P&gt;Download the file at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikblog.at/downloads/Demo_SelectingTwoValues.qvw"&gt;http://www.qlikblog.at/downloads/Demo_SelectingTwoValues.qvw&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 03:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210519#M65075</guid>
      <dc:creator />
      <dc:date>2009-10-08T03:49:35Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210520#M65076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;Thank you so much for the attached, it is exactly what I am after... Two small (daft) queries, what did you put in the variable and I am not that familiar with triggers yet, how do I put an on change trigger as you have done in the attached?&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 15:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210520#M65076</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2009-10-08T15:21:01Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210521#M65077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Dayna Litherland wrote:&lt;BR /&gt;Hello Stefan,&lt;BR /&gt;Thank you so much for the attached, it is exactly what I am after... Two small (daft) queries, what did you put in the variable and I am not that familiar with triggers yet, how do I put an on change trigger as you have done in the attached?&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Dayna&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using QlikView 8.5 or QlikView 9 ...?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 15:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210521#M65077</guid>
      <dc:creator />
      <dc:date>2009-10-08T15:29:40Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210522#M65078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am on QlikView 9 - my only other small issue at the moment is the Date Selection is selecting the date in a number format, have I missed something to change it back to a date format? Otherwise your example is perfect!&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 18:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210522#M65078</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2009-10-08T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210523#M65079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Dayna Litherland wrote:&lt;BR /&gt;I am on QlikView 9 - my only other small issue at the moment is the Date Selection is selecting the date in a number format, have I missed something to change it back to a date format? Otherwise your example is perfect!&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Dayna&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Change the field to date in your load script: date(A)&lt;/P&gt;&lt;P&gt;then you can use the document standard for it; furthermore you could format the value in the calendar-box (but with some date-formats, depending on your region, there is a bug i qlikview 9 sr1 not showing the correct format, therefore I have only used the document standard).&lt;/P&gt;&lt;P&gt;Hope this helps ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 23:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210523#M65079</guid>
      <dc:creator />
      <dc:date>2009-10-08T23:34:53Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210524#M65080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Dayna Litherland wrote:&lt;BR /&gt;Hello Stefan,&lt;BR /&gt;Thank you so much for the attached, it is exactly what I am after... Two small (daft) queries, what did you put in the variable and I am not that familiar with triggers yet, how do I put an on change trigger as you have done in the attached?&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Dayna&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;To set the triggers got to "Document Settings" and "Triggers" and choose the actions for the "variable event triggers" ... these (in my example) are calling a macro which you can find in the macro-editor (Ctrl + M)&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8750.trigger.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8750.trigger.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 23:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210524#M65080</guid>
      <dc:creator />
      <dc:date>2009-10-08T23:37:25Z</dc:date>
    </item>
    <item>
      <title>Selection of fields between 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210525#M65081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;Many thanks for your quick reply, when I make a change to the source data on your example it stops working. Are you able to identify as to what I am doing wrong?&lt;/P&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 18:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-of-fields-between-2-dates/m-p/210525#M65081</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2009-10-09T18:51:24Z</dc:date>
    </item>
  </channel>
</rss>

