<?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 How do I compare fields from 2 separate load statements? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-compare-fields-from-2-separate-load-statements/m-p/742482#M265099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading data from one file to another and joining it together as the load script below shows. The goal is to validate that my update to a system worked. The my_list table has what names in the system should have been updated to. The system table loads a dump from the system to show what the name currently is. I want to create a field called update_success (bolded below) that contains 'Yes' if what the name should be matches the name in the system, and 'No' if it does not match. However, when I load the script below I get the error "Field not found - &amp;lt;name_should_be&amp;gt;". Is there a better / good way to make this work? Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_list:&lt;BR /&gt;LOAD text(id_num) as id_num, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name_should_be&lt;BR /&gt;FROM&lt;BR /&gt;&lt;Z&gt;&lt;BR /&gt;(ooxml, embedded labels, table is data);&lt;/Z&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;system:&lt;BR /&gt;left join (my_list)&lt;BR /&gt;LOAD text(id_num) as id_num,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name as name_in_system,&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(name_should_be = name_in_system, 'Yes', 'No') as update_success&lt;/STRONG&gt;&lt;BR /&gt;FROM&lt;BR /&gt;C:\Downloads\dump.txt&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is '~');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 12:50:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-04T12:50:14Z</dc:date>
    <item>
      <title>How do I compare fields from 2 separate load statements?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-compare-fields-from-2-separate-load-statements/m-p/742482#M265099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading data from one file to another and joining it together as the load script below shows. The goal is to validate that my update to a system worked. The my_list table has what names in the system should have been updated to. The system table loads a dump from the system to show what the name currently is. I want to create a field called update_success (bolded below) that contains 'Yes' if what the name should be matches the name in the system, and 'No' if it does not match. However, when I load the script below I get the error "Field not found - &amp;lt;name_should_be&amp;gt;". Is there a better / good way to make this work? Thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_list:&lt;BR /&gt;LOAD text(id_num) as id_num, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name_should_be&lt;BR /&gt;FROM&lt;BR /&gt;&lt;Z&gt;&lt;BR /&gt;(ooxml, embedded labels, table is data);&lt;/Z&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;system:&lt;BR /&gt;left join (my_list)&lt;BR /&gt;LOAD text(id_num) as id_num,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name as name_in_system,&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(name_should_be = name_in_system, 'Yes', 'No') as update_success&lt;/STRONG&gt;&lt;BR /&gt;FROM&lt;BR /&gt;C:\Downloads\dump.txt&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is '~');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 12:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-compare-fields-from-2-separate-load-statements/m-p/742482#M265099</guid>
      <dc:creator />
      <dc:date>2015-03-04T12:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare fields from 2 separate load statements?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-compare-fields-from-2-separate-load-statements/m-p/742483#M265100</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;Try after left join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_list:&lt;BR /&gt;LOAD text(id_num) as id_num, &lt;BR /&gt; name_should_be&lt;BR /&gt;FROM&lt;BR /&gt;&lt;Z&gt;&lt;BR /&gt;(ooxml, embedded labels, table is data);&lt;/Z&gt;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;//system:&lt;BR /&gt;left join (my_list)&lt;BR /&gt;LOAD text(id_num) as id_num,&lt;BR /&gt; name as name_in_system&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if(name_should_be = name_in_system, 'Yes', 'No') as update_success&lt;/STRONG&gt;&lt;BR /&gt;FROM&lt;BR /&gt;C:\Downloads\dump.txt&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is '~');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My_List_System:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(name_should_be = name_in_system, 'Yes', 'No') as update_success&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident my_list;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 12:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-compare-fields-from-2-separate-load-statements/m-p/742483#M265100</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-03-04T12:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare fields from 2 separate load statements?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-compare-fields-from-2-separate-load-statements/m-p/742484#M265101</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;Before combining two table you can not my_list table fields into System table.&lt;/P&gt;&lt;P&gt;First you have to join it then using resident load you can access both field in one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 12:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-compare-fields-from-2-separate-load-statements/m-p/742484#M265101</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-03-04T12:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare fields from 2 separate load statements?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-compare-fields-from-2-separate-load-statements/m-p/742485#M265102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max. This worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 13:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-compare-fields-from-2-separate-load-statements/m-p/742485#M265102</guid>
      <dc:creator />
      <dc:date>2015-03-04T13:01:54Z</dc:date>
    </item>
  </channel>
</rss>

