<?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: The use of variables to filter a date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324728#M1187537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;I've added a cut down version of my qvw to my post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2011 13:39:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-10T13:39:05Z</dc:date>
    <item>
      <title>The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324721#M1187530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm new (ish) to Qlikview and have a question, which has been asked before and resolved, however it does not seem to work for me!!&lt;/P&gt;&lt;P&gt;I have a Qlikview report which I want to be able to filter on for a date range. The end user does not like the slider option and would just like to be able to input a from and to date and this should automatically filter the record set in a straight table or table box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the method I've chosed is to create two variables; startdate &amp;amp; enddate.&lt;/P&gt;&lt;P&gt;I've created two calendar objects to populate the variables.&lt;/P&gt;&lt;P&gt;I have set up two variable trigger events onInput and onChange; The Action is to 'Select in Field" on column TRADE_DATE and the search string is &lt;/P&gt;&lt;P&gt;='&amp;gt;='&amp;amp;Date(STARTDATE)&amp;amp;'&amp;lt;='&amp;amp;Date(ENDDATE).&lt;/P&gt;&lt;P&gt;I have created a simple List Box which contains TRADE_DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, on the example I have downloaded, when inputting a date range I see in a Current Selections box &amp;lt;&amp;lt;date_column&amp;gt;&amp;gt; &amp;gt;=01/01/2010&amp;lt;=01/01/2011 &lt;/P&gt;&lt;P&gt;which is what I want, however in my report nothing happens. Have I missed a step??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's the post I got the information from. &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/125465#125465"&gt;http://community.qlik.com/message/125465#125465&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob Walker.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 09:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324721#M1187530</guid>
      <dc:creator />
      <dc:date>2011-10-10T09:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324722#M1187531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here you have two&amp;nbsp; input variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where user can enter their dates and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result will filter accordingly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 10:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324722#M1187531</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-10-10T10:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324723#M1187532</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a look at the other example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 10:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324723#M1187532</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-10-10T10:19:15Z</dc:date>
    </item>
    <item>
      <title>The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324724#M1187533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;Thanks for the reply. It looks like this is run off a Macro. I would like to get the same effect without using a macro (as in the example in the hyperlink). It would appear that I'm missing a step even though I've set up the 2 variables, the calendar inputs for those variables and the trigger variable events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 10:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324724#M1187533</guid>
      <dc:creator />
      <dc:date>2011-10-10T10:23:11Z</dc:date>
    </item>
    <item>
      <title>The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324725#M1187534</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you try the example i gave you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 10:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324725#M1187534</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-10-10T10:40:51Z</dc:date>
    </item>
    <item>
      <title>The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324726#M1187535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still doesn't seem to link as I would like to my date field. I will add a sanitised version of my qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 12:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324726#M1187535</guid>
      <dc:creator />
      <dc:date>2011-10-10T12:35:08Z</dc:date>
    </item>
    <item>
      <title>The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324727#M1187536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've uploaded the qvw. What I had originally were 2 variables (not QV recommended naming conventions I know!!) which the two calendar selections populated. I then had variable trigger events onInput &amp;amp; onChange and an Action on Select on field. On the example qvw from that post, when you select values for the dates the Current Selections contain the necessary filter, however on my qvw, the event doesn't seem to trigger?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also added your calculation to the TRADE_DATE list box using the values from the variables, and again updating the calendar objects doesn't seem to do anything....??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 13:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324727#M1187536</guid>
      <dc:creator />
      <dc:date>2011-10-10T13:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324728#M1187537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;I've added a cut down version of my qvw to my post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 13:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324728#M1187537</guid>
      <dc:creator />
      <dc:date>2011-10-10T13:39:05Z</dc:date>
    </item>
    <item>
      <title>The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324729#M1187538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hello rob &lt;/P&gt;&lt;P&gt;its not a macro &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only i did added two inputbox and added two dates field &lt;/P&gt;&lt;P&gt;Input box provide the facility to enter .so you can enter your date range&lt;/P&gt;&lt;P&gt;from date in one and to date in other .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 13:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324729#M1187538</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-10-10T13:46:17Z</dc:date>
    </item>
    <item>
      <title>The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324730#M1187539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still doesn't seem to work on my qvw. I've attached it for your perusal. Are you able to see where I'm going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 14:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324730#M1187539</guid>
      <dc:creator />
      <dc:date>2011-10-10T14:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324731#M1187540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the button "Apply Date Filter" I've just created in your same application to get the start and end date and apply that filter to the whole sheet. Please check the calendar objects, minum and maximum, where I've prefixed the expression Min() and Max() with the "=" sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 14:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324731#M1187540</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-10T14:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324732#M1187541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen the followings errors in your application :&lt;/P&gt;&lt;P&gt;- In the search string you have not put the hour, try with : &lt;CODE&gt; ='&amp;gt;='&amp;amp;date(STARTDATE)&amp;amp;' &lt;STRONG&gt;00:00:00&lt;/STRONG&gt;&amp;lt;='&amp;amp;date(ENDDATE)&amp;amp;' &lt;STRONG&gt;00:00:00&lt;/STRONG&gt;'&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;- In the min/max boundaries for you calendar fields it's better not to take in account the current selection so try with : &lt;CODE&gt;Max({1} TOTAL TRADE_DATE)&lt;/CODE&gt; and &lt;CODE&gt;Min({1} TOTAL TRADE_DATE)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 14:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324732#M1187541</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2011-10-10T14:59:55Z</dc:date>
    </item>
    <item>
      <title>The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324733#M1187542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chaps,&lt;/P&gt;&lt;P&gt;I think your suggestion on adding the time part to the date string fixes the issue. Presumeably the dataformats have to be exact matches (unlike in SQL where as long as something is a date, you don't have to include the time part for a greater or less than operator). Added the = sign to the min and max as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 15:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324733#M1187542</guid>
      <dc:creator />
      <dc:date>2011-10-10T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324734#M1187543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel, &lt;/P&gt;&lt;P&gt;&amp;nbsp; How would I modify this to allow me to see 2 years worth of data, all the way down to the day? I would like to show the current month, then the next 12 months. But in my calculation, I'm using data from 2011 and 2010. I've supplied how I want to see it and my sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 18:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324734#M1187543</guid>
      <dc:creator />
      <dc:date>2012-03-07T18:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: The use of variables to filter a date range</title>
      <link>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324735#M1187544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to use the same "Apply Date Filter' to filter date range.. Same expression.. but it is not working..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 07:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-use-of-variables-to-filter-a-date-range/m-p/324735#M1187544</guid>
      <dc:creator>krishnaroopa</dc:creator>
      <dc:date>2012-07-31T07:32:14Z</dc:date>
    </item>
  </channel>
</rss>

