<?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 filter function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293609#M1201551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rick,&lt;/P&gt;&lt;P&gt;You may post some sample data so we can draw a chart based on it.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2010 12:08:14 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-12-10T12:08:14Z</dc:date>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293604#M1201546</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 have a problem i can't solve.&lt;/P&gt;&lt;P&gt;I made a tabelobject what show the following information:&lt;BR /&gt;- company name&lt;BR /&gt;- contract_startdate&lt;BR /&gt;- contract_enddate&lt;/P&gt;&lt;P&gt;The function of the tabel is to show when a compony started there contract end when it ends.&lt;/P&gt;&lt;P&gt;My question is: is it possible to create a function where i can put a specifik date, where the tabel reacts by showing only company names were contract_enddate is higher then &amp;lt;inputdate&amp;gt;.&lt;/P&gt;&lt;P&gt;I hope someone can help me?&lt;/P&gt;&lt;P&gt;Regrats,&lt;BR /&gt;Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 10:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293604#M1201546</guid>
      <dc:creator />
      <dc:date>2010-12-10T10:02:42Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293605#M1201547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rick,&lt;/P&gt;&lt;P&gt;First, create a variable vDate in the menu Settings, Variable Overview.&lt;/P&gt;&lt;P&gt;Then, create a slider/calendar object and set it to use variable vDate. Set the minimum to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Min(contract_enddate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;and the maximum to &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Max(contract_enddate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Go to the Number tab and set it to "Date"&lt;/P&gt;&lt;P&gt;Now select any date in this object you have just created and check that the date is displayed correctly.&lt;/P&gt;&lt;P&gt;If so, create a new chart, pivot table, add Company name as dimension and create two expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Only({&amp;lt; contract_enddate = {'&amp;gt;$(=Date(vDate))'} &amp;gt;} contract_startdate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Only({&amp;lt; contract_enddate = {'&amp;gt;$(=Date(vDate))'} &amp;gt;} contract_enddate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now you should see only those companies and dates greater than the date you have selected in your calendar object. If you change the object, the chart will be changed dynamically.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 10:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293605#M1201547</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-10T10:16:41Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293606#M1201548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;Thanks for your fast reply.&lt;/P&gt;&lt;P&gt;I've created a working slider/calender.&lt;/P&gt;&lt;P&gt;But when i create the pivot table it doesnt show any results.&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 10:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293606#M1201548</guid>
      <dc:creator />
      <dc:date>2010-12-10T10:55:52Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293607#M1201549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the date shown dates correctly? What dimension and expressions do you have in your chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293607#M1201549</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-10T11:36:01Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293608#M1201550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the date shown dates correctly, The vDate veriable also change when i change date so i geuss it works.&lt;/P&gt;&lt;P&gt;I use Company name as dimension, with no start or end date.&lt;BR /&gt;and i use the expressions as you mention with a little change to make the names correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293608#M1201550</guid>
      <dc:creator />
      <dc:date>2010-12-10T11:47:18Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293609#M1201551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rick,&lt;/P&gt;&lt;P&gt;You may post some sample data so we can draw a chart based on it.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 12:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293609#M1201551</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-10T12:08:14Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293610#M1201552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;I followed exact the first instruction you've posted but doenst work.&lt;BR /&gt;I don't understand what you mean with sample data.&lt;BR /&gt;What kind of information do you mean.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 12:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293610#M1201552</guid>
      <dc:creator />
      <dc:date>2010-12-10T12:18:07Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293611#M1201553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE style="margin:0px;"&gt;Ensure that contract_enddate is recognized as a Date and not as a string.&lt;BR /&gt;If not the solution suggest above will not work.&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 13:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293611#M1201553</guid>
      <dc:creator />
      <dc:date>2010-12-10T13:18:42Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293612#M1201554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;al fields are date fields,&lt;BR /&gt;also didn't fix it.&lt;/P&gt;&lt;P&gt;hope someone knows a answer:&lt;/P&gt;&lt;P&gt;Regrats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 13:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293612#M1201554</guid>
      <dc:creator />
      <dc:date>2010-12-10T13:44:29Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293613#M1201555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick,&lt;/P&gt;&lt;P&gt;1.- I'm using this data (script):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Data:LOAD * INLINE [CompanyName, StartDate, EndDateA, 01/01/2010, 01/05/2010B, 01/02/2010, 20/02/2010C, 01/02/2010, 01/03/2010D, 01/04/2010, 30/04/2010];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;2.- Create a variable named vDate&lt;/P&gt;&lt;P&gt;3.- Create a Slider/Calendar object using variable vDate, set minimum and maximum date as above.&lt;/P&gt;&lt;P&gt;4.- Create a new chart, Pivot Table, select CompanyName as Dimension&lt;/P&gt;&lt;P&gt;5.- Use the following as expression Start Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Only({&amp;lt; EndDate = {'&amp;gt;$(=Date(vDate))'} &amp;gt;} StartDate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;6.- Use the following as expression End Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Only({&amp;lt; EndDate = {'&amp;gt;$(=Date(vDate))'} &amp;gt;} EndDate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Close the chart properties.&lt;/P&gt;&lt;P&gt;Now select in your calendar a date. Select March 31, 2010. According to your description, it will show two results (the two companies which end date is greater than 31/03/2010): A and D, with their corresponding start and end dates.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 14:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293613#M1201555</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-10T14:07:24Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293614#M1201556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;I know why this doesn't work.&lt;BR /&gt;Our companies have at least 2 contracts.&lt;BR /&gt;We test your example above it works.&lt;BR /&gt;When we add for example company B 2 times (so 2 contracts) bouth will not be showed.&lt;/P&gt;&lt;P&gt;So the 2the or more contracts caught the problem.&lt;/P&gt;&lt;P&gt;Do you know how we can fix this so only the active contracts will be show also when a company has 1 active contract and 1 contract that has end?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293614#M1201556</guid>
      <dc:creator />
      <dc:date>2010-12-10T15:39:09Z</dc:date>
    </item>
    <item>
      <title>filter function</title>
      <link>https://community.qlik.com/t5/QlikView/filter-function/m-p/293615#M1201557</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;rickvanewijk wrote:Do you know how we can fix this so only the active contracts will be show also when a company has 1 active contract and 1 contract that has end?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Rick,&lt;/P&gt;&lt;P&gt;There may be several solutions:&lt;/P&gt;&lt;P&gt;A) If "Active" is a field that already exists in your database, then use it in the set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Only({&amp;lt; Active = {'Y'}, EndDate = {'&amp;gt;$(=Date(vDate))'} &amp;gt;} EndDate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;B) If the "Active" status depends on the end date itself, then something like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Only({&amp;lt; EndDate = {'&amp;gt;$(=Date(vDate))&amp;lt;$(=Date(Today()))'} &amp;gt;} EndDate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I've used my code above for these new expressions, so you will have to customize them for your needs and field names.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 18:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-function/m-p/293615#M1201557</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-10T18:00:28Z</dc:date>
    </item>
  </channel>
</rss>

