<?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 Between function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Between-function/m-p/998991#M339683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a "dynamic" hierarchy based on postal codes. Postal code 06500 belongs to South-area 66400 to West-area etc. I understood, that there is no between-function QlikView? So, I did this using "if", but it does not work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could the problem be with data value format? Shoud postal codes be converted to numbers? For example postal code 13330 is not getting value East, what it should get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the script I wrote for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE height="121" style="height: 122px; width: 750px;" width="749"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;If(PostalCode &amp;gt;= '00000' and PostalCode&amp;lt;= '09999', 'South'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; , If(PostalCode &amp;gt;= '11000' and PostalCode &amp;lt;= '11499', 'East'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; , If(PostalCode &amp;gt;= '65000' and PostalCode &amp;lt;= '69999', 'West'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; , 0))) as Area&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Dec 2015 09:20:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-11T09:20:51Z</dc:date>
    <item>
      <title>Between function</title>
      <link>https://community.qlik.com/t5/QlikView/Between-function/m-p/998991#M339683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a "dynamic" hierarchy based on postal codes. Postal code 06500 belongs to South-area 66400 to West-area etc. I understood, that there is no between-function QlikView? So, I did this using "if", but it does not work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could the problem be with data value format? Shoud postal codes be converted to numbers? For example postal code 13330 is not getting value East, what it should get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the script I wrote for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE height="121" style="height: 122px; width: 750px;" width="749"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;If(PostalCode &amp;gt;= '00000' and PostalCode&amp;lt;= '09999', 'South'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; , If(PostalCode &amp;gt;= '11000' and PostalCode &amp;lt;= '11499', 'East'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; , If(PostalCode &amp;gt;= '65000' and PostalCode &amp;lt;= '69999', 'West'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; , 0))) as Area&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 09:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-function/m-p/998991#M339683</guid>
      <dc:creator />
      <dc:date>2015-12-11T09:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Between function</title>
      <link>https://community.qlik.com/t5/QlikView/Between-function/m-p/998992#M339684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably want to do this in script by using the "IntervalMatch" function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's assume you have two tables already loaded:&lt;/P&gt;&lt;P&gt;- A table with PostalCode ranges (field with start of range, end of range and some value&lt;/P&gt;&lt;P&gt;- A table that has the PostalCode to match in it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now below that, add a table like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;Inner&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; (PostalCodeRangeTable)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;IntervalMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt;PostalCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 18pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt;BeginPostalCodeRange&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt;EndPostalCodeRange&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;SPAN style="font-size: 18pt;"&gt;PostalCodeRangeTable&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 10:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-function/m-p/998992#M339684</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-12-11T10:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Between function</title>
      <link>https://community.qlik.com/t5/QlikView/Between-function/m-p/998993#M339685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have a table where postal code is (customer information table). And yes, I will creat a table with postal code ranges in it just like you descriped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 10:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-function/m-p/998993#M339685</guid>
      <dc:creator />
      <dc:date>2015-12-11T10:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Between function</title>
      <link>https://community.qlik.com/t5/QlikView/Between-function/m-p/998994#M339686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! This works! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 08:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-function/m-p/998994#M339686</guid>
      <dc:creator />
      <dc:date>2015-12-14T08:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Between function</title>
      <link>https://community.qlik.com/t5/QlikView/Between-function/m-p/998995#M339687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Happy I could help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 09:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-function/m-p/998995#M339687</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-12-14T09:45:12Z</dc:date>
    </item>
  </channel>
</rss>

