<?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: Lookup value within range of dates, based on user key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lookup-value-within-range-of-dates-based-on-user-key/m-p/1101382#M918746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VLOOKUP FUNCTION IN THE QLIKVIEW IS USEFUL BY USING THE LINK&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/120548"&gt;Vlookup expression&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 10:01:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-10T10:01:56Z</dc:date>
    <item>
      <title>Lookup value within range of dates, based on user key</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-value-within-range-of-dates-based-on-user-key/m-p/1101380#M918744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having some trouble creating a set analysis that check whether a client is active during a certain period of time. &lt;BR /&gt; I have 2 date fields which is the Start date and the end Date of the membership:&lt;BR /&gt; &lt;BR /&gt; - DateField_1 = Start Period of membership&lt;BR /&gt; - DateField_2 = End Period of membership&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Client&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;StartDate&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;EndDate&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Key&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ACTIVE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/04/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;001_15/16_07&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ACTIVE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/08/2008&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30/08/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;001_08/09_02&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my financial data reporting I need to know whether the client was active during that reporting period.&lt;BR /&gt; &lt;BR /&gt; So I have created the data to suit my fiscal year which starts in July.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="padding: 2px; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Client&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;StartMonth&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;EndMonth&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ACTIVE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;001_15/16_07&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;001_15/16_10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ACTIVE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;001_08/09_02&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;001_15/16_02&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt; I require the set analysis to tell me whether the client is Active or Inactive during that period:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Financial reporting &lt;BR /&gt; 15/16_01 ACTIVE&lt;BR /&gt; 15/16_02 ACTIVE&lt;BR /&gt; 15/16_03 INACTIVE&lt;BR /&gt; 15/16_04 INACTIVE&lt;BR /&gt; 15/16_05 INACTIVE&lt;BR /&gt; 15/16_06 INACTIVE&lt;BR /&gt; 15/16_07 ACTIVE&lt;BR /&gt; 15/16_08 ACTIVE&lt;BR /&gt; 15/16_09 ACTIVE&lt;BR /&gt; 15/16_10 ACTIVE&lt;BR /&gt; 15/16_11 INACTIVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have tried to use Lookup and Interval map with no success.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Inv_Tab:&lt;BR /&gt;IntervalMatch (key1) &lt;BR /&gt;LOAD Start_Month, End_Month Resident membership;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-value-within-range-of-dates-based-on-user-key/m-p/1101380#M918744</guid>
      <dc:creator>deshikas</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value within range of dates, based on user key</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-value-within-range-of-dates-based-on-user-key/m-p/1101381#M918745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The values in the fields Key, Start_Month and End_Month are not numbers, but text values. That's why the intervalmatch function can't work with them. You need to use numeric values. Dates would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multiple clients then you'll also want to add the client field to the intervalmatch function so the intervals are matched per client:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inv_Tab:&lt;/P&gt;&lt;P&gt;IntervalMatch(Key_Date, Client)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start_Month_Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End_Month_Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; membership&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 09:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-value-within-range-of-dates-based-on-user-key/m-p/1101381#M918745</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-05-10T09:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value within range of dates, based on user key</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-value-within-range-of-dates-based-on-user-key/m-p/1101382#M918746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VLOOKUP FUNCTION IN THE QLIKVIEW IS USEFUL BY USING THE LINK&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/120548"&gt;Vlookup expression&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 10:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-value-within-range-of-dates-based-on-user-key/m-p/1101382#M918746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-10T10:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup value within range of dates, based on user key</title>
      <link>https://community.qlik.com/t5/QlikView/Lookup-value-within-range-of-dates-based-on-user-key/m-p/1101383#M918747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert for your help. I changed the fields into date values and added the client ID in the interval match as you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked perfectly.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 04:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lookup-value-within-range-of-dates-based-on-user-key/m-p/1101383#M918747</guid>
      <dc:creator>deshikas</dc:creator>
      <dc:date>2016-05-11T04:17:53Z</dc:date>
    </item>
  </channel>
</rss>

