<?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: Table1.FieldA=Table2.FieldB condition in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059053#M354787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is my bad. In my scenario there will not be a direct join between the two tables. They are quite different in the Data Model. There will not be a joining column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the bad example I gave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your further help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Feb 2016 02:51:28 GMT</pubDate>
    <dc:creator>shyamcharan</dc:creator>
    <dc:date>2016-02-18T02:51:28Z</dc:date>
    <item>
      <title>Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059051#M354785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to create a field values such as 'Within Area' and 'Outside Area'.&lt;/P&gt;&lt;P&gt;The definitions are as below:&lt;/P&gt;&lt;P&gt;IF(Table1.FieldA=Table2.FieldB,'Within Area','Outside Area')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am unable to figure out how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help here is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 02:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059051#M354785</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-18T02:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059052#M354786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be by doing a join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ID, C1, C2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 1, ABC, 123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, DEF, 456&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, GHI, 789&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ID, C21, C42&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 1, ABC, 123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, ABC, 456&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, GRHI, 789&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, DEF, 456&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, GHI, 789&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;T1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; IF(C21=C1,'Within','NotWithin') AS CA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115057_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 02:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059052#M354786</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-18T02:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059053#M354787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is my bad. In my scenario there will not be a direct join between the two tables. They are quite different in the Data Model. There will not be a joining column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the bad example I gave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your further help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 02:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059053#M354787</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-18T02:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059054#M354788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively you can try with Mapping Load to only check IDs in just Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ID, C1, C2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 1, ABC, 123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, DEF, 456&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, GHI, 789&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ID, C21, C42&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 1, ABC, 123&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, ABC, 456&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, GRHI, 789&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, DEF, 456&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, GHI, 789&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MappingTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; C21&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;T1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; IF(ApplyMap('MappingTable', ID) = C1,'Within','NotWithin') AS CA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115058_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 02:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059054#M354788</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-18T02:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059055#M354789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just got confused. Is the mapping load working on the common field ID in both the tables ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will not have a common join field or ID field in both the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables would be joined to quite other tables in the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 03:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059055#M354789</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-18T03:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059056#M354790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess can you share a sample which is more representative of your actual data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 03:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059056#M354790</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-18T03:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059057#M354791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please accept my appologies for the confusion caused.&lt;/P&gt;&lt;P&gt;Please find the attached new sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in my actual data model the Table1 and Table 2 are quite apart with more tables in between somthing like the attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 03:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059057#M354791</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-18T03:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059058#M354792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the output that you are expecting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 03:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059058#M354792</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-18T03:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059059#M354793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I want to have a separate field in Table 1 that has just the values 'Within Area' and 'Outside Area' and that meets the below criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IF(Table1.FieldA=Table2.FieldB,'Within Area','Outside Area')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;-Shyam&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 03:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059059#M354793</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-02-18T03:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Table1.FieldA=Table2.FieldB condition in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059060#M354794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check the attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 03:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table1-FieldA-Table2-FieldB-condition-in-Load-Script/m-p/1059060#M354794</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-18T03:39:21Z</dc:date>
    </item>
  </channel>
</rss>

