<?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 script question about selecting a region in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-question-about-selecting-a-region/m-p/2001762#M1221409</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have two tables&lt;/P&gt;
&lt;P&gt;Region:&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;"zipcode_from, zipcode_to, region&lt;BR /&gt;1000, 2000, North&lt;BR /&gt;2000, 3000, West&lt;BR /&gt;3000, 4000, East";&lt;/P&gt;
&lt;P&gt;Customers:&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;"CustomerId, zipcode&lt;BR /&gt;1, 1100&lt;BR /&gt;2, 2000,&lt;BR /&gt;3, 2234&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;Now I want to know in which regions my customers are, based on the zipcode of the customer&lt;/P&gt;
&lt;P&gt;Customer 1 has zipcode 1100 and this code is between 1000 and 2000, so this customer is situated in region North.&lt;/P&gt;
&lt;P&gt;How can I add the region to the customer table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 14:03:03 GMT</pubDate>
    <dc:creator>heij1421</dc:creator>
    <dc:date>2022-11-08T14:03:03Z</dc:date>
    <item>
      <title>script question about selecting a region</title>
      <link>https://community.qlik.com/t5/QlikView/script-question-about-selecting-a-region/m-p/2001762#M1221409</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have two tables&lt;/P&gt;
&lt;P&gt;Region:&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;"zipcode_from, zipcode_to, region&lt;BR /&gt;1000, 2000, North&lt;BR /&gt;2000, 3000, West&lt;BR /&gt;3000, 4000, East";&lt;/P&gt;
&lt;P&gt;Customers:&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;"CustomerId, zipcode&lt;BR /&gt;1, 1100&lt;BR /&gt;2, 2000,&lt;BR /&gt;3, 2234&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;Now I want to know in which regions my customers are, based on the zipcode of the customer&lt;/P&gt;
&lt;P&gt;Customer 1 has zipcode 1100 and this code is between 1000 and 2000, so this customer is situated in region North.&lt;/P&gt;
&lt;P&gt;How can I add the region to the customer table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 14:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-question-about-selecting-a-region/m-p/2001762#M1221409</guid>
      <dc:creator>heij1421</dc:creator>
      <dc:date>2022-11-08T14:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: script question about selecting a region</title>
      <link>https://community.qlik.com/t5/QlikView/script-question-about-selecting-a-region/m-p/2001775#M1221411</link>
      <description>&lt;P&gt;Hi, you can use intervalmatch to assign a value between a range, check the example on the help page:&amp;nbsp;&lt;A href="https://help.qlik.com/es-ES/sense/May2022/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/IntervalMatch.htm" target="_blank"&gt;https://help.qlik.com/es-ES/sense/May2022/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/IntervalMatch.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 14:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-question-about-selecting-a-region/m-p/2001775#M1221411</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-08T14:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: script question about selecting a region</title>
      <link>https://community.qlik.com/t5/QlikView/script-question-about-selecting-a-region/m-p/2001780#M1221412</link>
      <description>&lt;P&gt;Thanks Rubenmarin, that helps:&lt;/P&gt;
&lt;P&gt;Customerstemp:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;"CustomerId, zipcode&lt;BR /&gt;1, 1100&lt;BR /&gt;2, 2000,&lt;BR /&gt;3, 2234&lt;BR /&gt;";&lt;/P&gt;
&lt;P&gt;Regiontemp:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;"zipcode_from, zipcode_to, region&lt;BR /&gt;1000, 2000, North&lt;BR /&gt;2001, 3000, West&lt;BR /&gt;3001, 4000, East";&lt;/P&gt;
&lt;P&gt;Inner Join IntervalMatch ( zipcode ) &lt;BR /&gt;LOAD zipcode_from, zipcode_to&lt;BR /&gt;Resident Regiontemp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 14:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-question-about-selecting-a-region/m-p/2001780#M1221412</guid>
      <dc:creator>heij1421</dc:creator>
      <dc:date>2022-11-08T14:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: script question about selecting a region</title>
      <link>https://community.qlik.com/t5/QlikView/script-question-about-selecting-a-region/m-p/2001786#M1221413</link>
      <description>&lt;P&gt;And you can merge region to the customer table if you add&lt;/P&gt;
&lt;P&gt;Left join (Customerstemp)&lt;BR /&gt;LOAD zipcode, region Resident Regiontemp;&lt;/P&gt;
&lt;P&gt;DROP Table Regiontemp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 14:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-question-about-selecting-a-region/m-p/2001786#M1221413</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-08T14:37:54Z</dc:date>
    </item>
  </channel>
</rss>

