<?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 Select between Valid_from and Valid_to in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-between-Valid-from-and-Valid-to/m-p/217174#M70419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use an EXTENDED INTERVALMATCH to get all dates between VALID_FROM and VALID_TO per ID, but it would really add to your number of records.&lt;/P&gt;&lt;P&gt;Never use the Extended version before, but it should look something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;INTERVALMATCH (date, ID)&lt;BR /&gt;LOAD&lt;BR /&gt; VALID_FROM,&lt;BR /&gt; VALID_TO,&lt;BR /&gt; ID&lt;BR /&gt;RESIDENT D_CASES;&lt;BR /&gt;JOIN (D_CASES)&lt;BR /&gt;LOAD&lt;BR /&gt; VALID_FROM,&lt;BR /&gt; VALID_TO,&lt;BR /&gt; ID,&lt;BR /&gt; date&lt;BR /&gt;RESIDENT Temp;&lt;BR /&gt;DROP TABLE Temp;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 13:54:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-20T13:54:39Z</dc:date>
    <item>
      <title>Select between Valid_from and Valid_to</title>
      <link>https://community.qlik.com/t5/QlikView/Select-between-Valid-from-and-Valid-to/m-p/217173#M70418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I got a Datawarehouse, STAR Schema, connected to QlikView. Everything is connected pretty good and it works fine so far. There is only one thing I dont really know how to handle it properly.&lt;/P&gt;&lt;P&gt;In the Dimensiontable D_CASES we got the ID, STATUS, VALID_FROM and VALID_TO (and others which are not necessary in this case). Now I need to know, for example, the Status of all ID's at a specific date, like the 4th of january 2010. Thats all normal DWH logic so I guess someone out there can give me an advice how to handle it.&lt;/P&gt;&lt;P&gt;The Table has aprox. 32 Mio. records (growing) and the facts connected to this table is aprox. 55 Mio. records (growing), so it's a performance issue too.&lt;/P&gt;&lt;P&gt;I thought about using SET where the selected Date is a variable used to get the Valid records for each ID. Or maybe build a lookup for all possible combinations of VALID_FROM/TO and days...&lt;BR /&gt;I would prefer to somehow filter all valild records than just "ignoring" them through SET.&lt;/P&gt;&lt;P&gt;I'm glad for every Solutions/Ideas/Help&lt;/P&gt;&lt;P&gt;QlikView Version: 8.5&lt;/P&gt;&lt;P&gt;Thanks in advance and Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 09:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-between-Valid-from-and-Valid-to/m-p/217173#M70418</guid>
      <dc:creator />
      <dc:date>2010-01-20T09:29:36Z</dc:date>
    </item>
    <item>
      <title>Select between Valid_from and Valid_to</title>
      <link>https://community.qlik.com/t5/QlikView/Select-between-Valid-from-and-Valid-to/m-p/217174#M70419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use an EXTENDED INTERVALMATCH to get all dates between VALID_FROM and VALID_TO per ID, but it would really add to your number of records.&lt;/P&gt;&lt;P&gt;Never use the Extended version before, but it should look something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Temp:&lt;BR /&gt;INTERVALMATCH (date, ID)&lt;BR /&gt;LOAD&lt;BR /&gt; VALID_FROM,&lt;BR /&gt; VALID_TO,&lt;BR /&gt; ID&lt;BR /&gt;RESIDENT D_CASES;&lt;BR /&gt;JOIN (D_CASES)&lt;BR /&gt;LOAD&lt;BR /&gt; VALID_FROM,&lt;BR /&gt; VALID_TO,&lt;BR /&gt; ID,&lt;BR /&gt; date&lt;BR /&gt;RESIDENT Temp;&lt;BR /&gt;DROP TABLE Temp;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 13:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-between-Valid-from-and-Valid-to/m-p/217174#M70419</guid>
      <dc:creator />
      <dc:date>2010-01-20T13:54:39Z</dc:date>
    </item>
    <item>
      <title>Select between Valid_from and Valid_to</title>
      <link>https://community.qlik.com/t5/QlikView/Select-between-Valid-from-and-Valid-to/m-p/217175#M70420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good, except that I dont know if it will work with that many records. I'll try and let you know - this could take while indeed &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So far I made a "workaround" with If expressions, works fine but, as mentioned, I'd prefer to select these cases so I'll try it for sure!&lt;/P&gt;&lt;P&gt;Many thanks and&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 14:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-between-Valid-from-and-Valid-to/m-p/217175#M70420</guid>
      <dc:creator />
      <dc:date>2010-01-20T14:02:21Z</dc:date>
    </item>
  </channel>
</rss>

