<?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 Date or nearest. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143857#M22974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I think you're on the good way.&lt;/P&gt;&lt;P&gt;You should rework your setA tabe in order to get a Start date and End date.&lt;/P&gt;&lt;P&gt;To do this you should do a Load Date as startdate, after(Date) -1 as EndDate resident matable.&lt;/P&gt;&lt;P&gt;Then you should be able to run the intervalmatch...&lt;/P&gt;&lt;P&gt;I cannot find an easiest way for the time being...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2009 23:04:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-11T23:04:43Z</dc:date>
    <item>
      <title>Date or nearest.</title>
      <link>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143854#M22971</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 a set of scores (setA) which are recorded weekly, the Date field is the date the recording took place&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01/01/2000, 08/01/2000, ....&lt;/P&gt;&lt;P&gt;every 7 days.&lt;/P&gt;&lt;P&gt;However, there are other scores (different set, setB) which are recorded daily.&lt;/P&gt;&lt;P&gt;The data should be related so that if i pick the 04/01/2000 (4th jan 2000), the score value for both are shown,&lt;/P&gt;&lt;P&gt;obviously there is no entry for 04/01/2000 in setA, however the score for that week was recorded at 08/01/2000.&lt;/P&gt;&lt;P&gt;Currently, when i select 04/01/2000, setB is shown but setA shows empty for the above reason. How can I make it so that setA displays the value for that week 01/01/2000 - 07/01/2000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 22:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143854#M22971</guid>
      <dc:creator />
      <dc:date>2009-05-11T22:15:28Z</dc:date>
    </item>
    <item>
      <title>Date or nearest.</title>
      <link>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143855#M22972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should be able to do an intervalmatch fonction between the Set1 dates and SetBDates.&lt;/P&gt;&lt;P&gt;This should give you a table with the dates matching both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 22:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143855#M22972</guid>
      <dc:creator />
      <dc:date>2009-05-11T22:18:55Z</dc:date>
    </item>
    <item>
      <title>Date or nearest.</title>
      <link>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143856#M22973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so based on what you said I looked in the manual on page 306 and found this:&lt;/P&gt;&lt;P&gt;&lt;B&gt;intervalmatch (Day) Select PeriodStart, PeriodEnd from&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;intervaltable;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; So I'm guessting it would be for me given the query:&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;SELECT&lt;/STRONG&gt; *&lt;BR /&gt;&lt;B&gt;FROM&lt;/B&gt; myTable&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;I would have&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;intervalmatch (Date) Select ?????????&lt;/P&gt;&lt;P&gt;See I'm not sure how to use intervalmatch, what's more it seems periodstart and periodend are 2 distinct fields in a table.&lt;/P&gt;&lt;P&gt;Where as my information has a set of dates (which in order make up the intervals)&lt;/P&gt;&lt;P&gt;1/1/08 | 10&lt;BR /&gt;8/1/08 | 15&lt;BR /&gt;15/1/08 | 12&lt;/P&gt;&lt;P&gt;rather than&lt;/P&gt;&lt;P&gt;Start | End&lt;BR /&gt;1/1/08 | 7/1/08&lt;BR /&gt;7/1/08 | 14/1/08&lt;BR /&gt;15/1/08 | ....&lt;/P&gt;&lt;P&gt;Is this still ok?&lt;/P&gt;&lt;P&gt;How would I do it?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 22:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143856#M22973</guid>
      <dc:creator />
      <dc:date>2009-05-11T22:57:16Z</dc:date>
    </item>
    <item>
      <title>Date or nearest.</title>
      <link>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143857#M22974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I think you're on the good way.&lt;/P&gt;&lt;P&gt;You should rework your setA tabe in order to get a Start date and End date.&lt;/P&gt;&lt;P&gt;To do this you should do a Load Date as startdate, after(Date) -1 as EndDate resident matable.&lt;/P&gt;&lt;P&gt;Then you should be able to run the intervalmatch...&lt;/P&gt;&lt;P&gt;I cannot find an easiest way for the time being...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 23:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143857#M22974</guid>
      <dc:creator />
      <dc:date>2009-05-11T23:04:43Z</dc:date>
    </item>
    <item>
      <title>Date or nearest.</title>
      <link>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143858#M22975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your setA dates are always exactly 7 days apart, it's easy to calculate the end date in the IntervalMatch.&lt;/P&gt;&lt;P&gt;IntervalMatch (SetBDate) LOAD SetADate, SetADate+6 RESIDENT SetA;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 02:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-or-nearest/m-p/143858#M22975</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-05-12T02:26:59Z</dc:date>
    </item>
  </channel>
</rss>

