<?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 How to filter it? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-filter-it/m-p/205248#M61805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try the following&lt;/P&gt;&lt;P&gt;// load usage&lt;BR /&gt;loadUsage:&lt;BR /&gt;load&lt;BR /&gt;Memberid,&lt;BR /&gt;CompletionDate&lt;BR /&gt;from usage.qvd (qvd);&lt;/P&gt;&lt;P&gt;// load Order but only for Membrids present in Usage file&lt;BR /&gt;Order:&lt;BR /&gt;load&lt;BR /&gt;OrderId,&lt;BR /&gt;MemberId,&lt;BR /&gt;Startdate,&lt;BR /&gt;EndDate&lt;BR /&gt;from Order.qvd (qvd)&lt;BR /&gt;where exists(MemberId,MemberId);&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;// join the two tables together&lt;BR /&gt;loadUsage:&lt;BR /&gt;join (loadUsage)&lt;BR /&gt;load&lt;BR /&gt;Memberid,&lt;BR /&gt;OrderId,&lt;BR /&gt;Startdate,&lt;BR /&gt;EndDate&lt;BR /&gt;resident Order;&lt;/P&gt;&lt;P&gt;// now reduce this table to eliminate memberIds failing the date test&lt;/P&gt;&lt;P&gt;Usage:&lt;BR /&gt;noconcatenate load&lt;BR /&gt;Memberid,&lt;BR /&gt;OrderId,&lt;BR /&gt;CompletionDate&lt;BR /&gt;resident loadUsage&lt;BR /&gt;where CompletionDate &amp;gt;= StartDate and CompletionDate &amp;lt;= EndDate;&lt;/P&gt;&lt;P&gt;drop tables loadUsage, Order;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;this should get you a table called Usage with 3 columns and data respecting your requirements.&lt;BR /&gt;OrderId,&lt;BR /&gt;MemberId,&lt;BR /&gt;CompletionDate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2011 13:50:59 GMT</pubDate>
    <dc:creator>pat_agen</dc:creator>
    <dc:date>2011-04-08T13:50:59Z</dc:date>
    <item>
      <title>How to filter it?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-it/m-p/205247#M61804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two table, and I store it into QVD.&lt;/P&gt;&lt;P&gt;Test data:&lt;/P&gt;&lt;P&gt;Order:&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;OrderId,MemberId,StartDate,EndDate&lt;BR /&gt;1,1,2010/01/03,2010/09/01&lt;BR /&gt;2,1,2010/10/01,2010/12/01&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Usage:&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;MemberId,CompletionDate&lt;BR /&gt;1, 2010/05/01&lt;BR /&gt;1,2010/11/01&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;But now I just want to load Usage, but I need to attach the relevant OrdID to the Usage, that is judged by the MemberId and whether the CompletionDate is between the relevant startdate and enddate.&lt;/P&gt;&lt;P&gt;For this situation, the results look like this:&lt;/P&gt;&lt;P&gt;OrderId MemberId CompletionDate&lt;/P&gt;&lt;P&gt;1, 1, 2010/05/01&lt;/P&gt;&lt;P&gt;2, 1, 2010/11/01&lt;/P&gt;&lt;P&gt;How to use script to load it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 12:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-it/m-p/205247#M61804</guid>
      <dc:creator />
      <dc:date>2011-04-08T12:44:25Z</dc:date>
    </item>
    <item>
      <title>How to filter it?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-it/m-p/205248#M61805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try the following&lt;/P&gt;&lt;P&gt;// load usage&lt;BR /&gt;loadUsage:&lt;BR /&gt;load&lt;BR /&gt;Memberid,&lt;BR /&gt;CompletionDate&lt;BR /&gt;from usage.qvd (qvd);&lt;/P&gt;&lt;P&gt;// load Order but only for Membrids present in Usage file&lt;BR /&gt;Order:&lt;BR /&gt;load&lt;BR /&gt;OrderId,&lt;BR /&gt;MemberId,&lt;BR /&gt;Startdate,&lt;BR /&gt;EndDate&lt;BR /&gt;from Order.qvd (qvd)&lt;BR /&gt;where exists(MemberId,MemberId);&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;// join the two tables together&lt;BR /&gt;loadUsage:&lt;BR /&gt;join (loadUsage)&lt;BR /&gt;load&lt;BR /&gt;Memberid,&lt;BR /&gt;OrderId,&lt;BR /&gt;Startdate,&lt;BR /&gt;EndDate&lt;BR /&gt;resident Order;&lt;/P&gt;&lt;P&gt;// now reduce this table to eliminate memberIds failing the date test&lt;/P&gt;&lt;P&gt;Usage:&lt;BR /&gt;noconcatenate load&lt;BR /&gt;Memberid,&lt;BR /&gt;OrderId,&lt;BR /&gt;CompletionDate&lt;BR /&gt;resident loadUsage&lt;BR /&gt;where CompletionDate &amp;gt;= StartDate and CompletionDate &amp;lt;= EndDate;&lt;/P&gt;&lt;P&gt;drop tables loadUsage, Order;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;this should get you a table called Usage with 3 columns and data respecting your requirements.&lt;BR /&gt;OrderId,&lt;BR /&gt;MemberId,&lt;BR /&gt;CompletionDate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 13:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-it/m-p/205248#M61805</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-04-08T13:50:59Z</dc:date>
    </item>
    <item>
      <title>How to filter it?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-it/m-p/205249#M61806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the IntervalMatch function, Probably the extended syntax. you will end up with something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;IntervalMatch ( CompletionDate, MemberId ) select StartDate , EndDate, MemberId from Order;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 14:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-it/m-p/205249#M61806</guid>
      <dc:creator />
      <dc:date>2011-04-08T14:10:37Z</dc:date>
    </item>
  </channel>
</rss>

