<?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: Loop to fetch the subregion from two different tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704605#M254105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;thanks for the reply but as in the above mentioned table in your solution area &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: rgb(61, 61, 61); width: 369px;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="212"&gt;SubRegion&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="157"&gt;CountryName2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Americas&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Americas&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Asia Pacific&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Asia Pacific&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Brazil DC&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Latin America&lt;/P&gt;&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;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="243"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl67" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="179"&gt;BR_Country&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;BUYER_COUNTRY&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;UNKNOWN&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;UNITED ARAB EMIRATES&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;GHANA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Here, we need to get the SubRegion from mapping of BR_Country and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CountryName2. THe final resultig table should be with 2 columns BRCountry and SUbRegion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;i.e if we select GHANA it needs to do check with the CountryName2 table for GHANA and then it needs to fetch the SunRegion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;the data that i given is correct as per the requirment&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope u get the&amp;nbsp; right inputs&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Sep 2014 15:42:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-28T15:42:58Z</dc:date>
    <item>
      <title>Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704597#M254097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks/ QvExperts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qv and stuck in complex situation.&lt;/P&gt;&lt;P&gt;I am sharing the sample excel sheet and my requirement is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three differenct tables those are BR_Country, CountryName and SubRegion. Here i need to map the BR_country to the CountryName to get the SubRegion , i need to create a loop for searching of all the country names in BR_Country and to compare with the CountryName table to get the SubRegion&lt;/P&gt;&lt;P&gt;Resultant table should be with two columns BR_Country and SubRegion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: country names in the "CountryName " will be AmericaSales and in the "BR_Country" will be America but need to be map these two to fetch the Subregion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand the requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 10:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704597#M254097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T10:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704598#M254098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why don't you prepare it in the Excel file?&lt;/P&gt;&lt;P&gt;or you can define a mapping table in qlikview&lt;/P&gt;&lt;P&gt;(lots of work I guess)&lt;/P&gt;&lt;P&gt;as I see there are not many rows which might fit&lt;/P&gt;&lt;P&gt;between the tables (e.g. Jamaica-&amp;gt; where is the&lt;/P&gt;&lt;P&gt;Connection between Subreg and Main?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 11:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704598#M254098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T11:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704599#M254099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rudolf thanks for reply&lt;/P&gt;&lt;P&gt;those are from DB for convenience purpose i taken into Excel.&lt;/P&gt;&lt;P&gt;the common column is&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CountryName&amp;nbsp; and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;BR_Country because the values are same but in CountryName the values may be a bit extended &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Country Name in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;BR_Country&amp;nbsp; is America the the countryName in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CountryName&amp;nbsp;&amp;nbsp; is AmericaSales need to compare these two to get the SubRegion of America &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 11:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704599#M254099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704600#M254100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Something is missing between&amp;nbsp; your data(Tables) please check the data once and post the sample data again...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 11:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704600#M254100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T11:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704601#M254101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply Sreekanth ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everything is correct&lt;/P&gt;&lt;P&gt;1) load the excel in QV and rename the CountryName2 as BuyerCountry and reload&lt;/P&gt;&lt;P&gt;2) take a tablebox and select all the fields and now go to the excel sheet select the Buyercountry and cross check in the Subregion you will get an idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 11:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704601#M254101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T11:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704602#M254102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Pleas find&amp;nbsp; the attachments...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 12:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704602#M254102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T12:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704603#M254103</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;it doesnt yielded the result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you select any country even though the values are not showing in Subregion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 12:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704603#M254103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T12:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704604#M254104</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 tried to help, but like Venkata Sreekanth&amp;nbsp; told, maybe is missing some column.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="369"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="212"&gt;SubRegion&lt;/TD&gt;&lt;TD class="xl65" width="157"&gt;CountryName2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Americas&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none;"&gt;Americas&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Asia Pacific&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt;Asia Pacific&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Brazil DC&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none;"&gt;&lt;P&gt;Latin America&lt;/P&gt;&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;TABLE border="0" cellpadding="0" cellspacing="0" width="243"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="179"&gt;BR_Country&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;BUYER_COUNTRY&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;UNKNOWN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;UNITED ARAB EMIRATES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;GHANA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alessandro Furtado&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 03:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704604#M254104</guid>
      <dc:creator>afurtado</dc:creator>
      <dc:date>2014-09-28T03:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704605#M254105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;thanks for the reply but as in the above mentioned table in your solution area &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: rgb(61, 61, 61); width: 369px;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="212"&gt;SubRegion&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="157"&gt;CountryName2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Americas&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Americas&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Asia Pacific&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Asia Pacific&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;Brazil DC&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Latin America&lt;/P&gt;&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;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="243"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl67" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="179"&gt;BR_Country&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;BUYER_COUNTRY&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;UNKNOWN&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;UNITED ARAB EMIRATES&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl66" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;GHANA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Here, we need to get the SubRegion from mapping of BR_Country and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CountryName2. THe final resultig table should be with 2 columns BRCountry and SUbRegion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;i.e if we select GHANA it needs to do check with the CountryName2 table for GHANA and then it needs to fetch the SunRegion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;the data that i given is correct as per the requirment&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope u get the&amp;nbsp; right inputs&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Sep 2014 15:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704605#M254105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-28T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704606#M254106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bump&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 03:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704606#M254106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-29T03:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Loop to fetch the subregion from two different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704607#M254107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created 2 join rules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. 'As is' case insensitive join on upper([CountryName2]) =upper( [BR_Country])&amp;nbsp; -&amp;gt; this created some hits&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; On whatever is left (use WHERE NOT EXISTS) , join where&amp;nbsp; any of the component words with the commas stripped match up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(purgechar(upper(BR_Country),','), ' ') as CountryWord&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield( purgechar(upper(CountryName2),',') , ' ') as CountryWord&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; this allowed me to join say,&amp;nbsp; ' CHINA,PEOPLES REPUBLIC OF'&amp;nbsp; to 'CHINA' because the word CHINA exists in both.&amp;nbsp; (it also yielded Korea).&amp;nbsp; To do this i had to filter out 'SOUTH' because that would join SOUTH AFRICA to SOUTH PACIFIC for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 3rd step is to table concatenate the 2 results together. Attached is the result so for .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67875_Capture.PNG.png" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What other rules would you want to join&amp;nbsp; ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you build up more and more scenarios you will get more and more hits, the trick is to not join anything you've already joined and to combine the results with each successive wave. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps you get started.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 14:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-to-fetch-the-subregion-from-two-different-tables/m-p/704607#M254107</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-29T14:13:24Z</dc:date>
    </item>
  </channel>
</rss>

