<?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: Help Using Nulls and Joins in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278105#M1191481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, OK, if you're loading your tables with a binary load, that's a different animal.&amp;nbsp; I assume, then, that your contracted table is loaded during the binary load as well?&amp;nbsp; In that case, I'd probably use left joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;BINARY blah blah blah;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LEFT JOIN (Spend)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Supplier&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Contracted as ContractedTemp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT ContractedTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LEFT JOIN (Spend)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;the key field(s) to the spending table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(len(ContractedTemp),ContractedTemp,'N') as Contracted&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Spend&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DROP TABLE ContractedTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I meant by avoiding doing an extra load is that had you NOT been doing a binary load, you wouldn't have needed the left joins above.&amp;nbsp; There is nothing about doing an applymap() that prevents further loads.&amp;nbsp; It was a way to NOT NEED further loads.&amp;nbsp; You're basically doing two extra loads here, the two left joins.&amp;nbsp; Mind you, you probably get all that time back and more by doing the binary load, so I'm not suggesting you change your overall approach.&amp;nbsp; I merely misunderstood how you were loading your data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above solution is VERY similar to Miguel's, just with a left join at the end instead of loading a new table.&amp;nbsp; I believe that will take less RAM than creating a new table.&amp;nbsp; I'm not certain about CPU, but I'd guess about the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2011 16:47:03 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-07-18T16:47:03Z</dc:date>
    <item>
      <title>Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278096#M1191472</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 have 2 tables, Spend and Contracted:&amp;nbsp; first details the supplier and their spend, the second has the supplier and if they are a contracted supplier (Y).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Spend table contains more suppliers than can be found in the Contracted table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to combine the details found in the "Contracted" table back into the "Spend", and for those suppliers that are not listed in the "Contracted" table, to return "No" by default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="contracted.gif" class="jive-image-thumbnail jive-image" height="303" onclick="" src="https://community.qlik.com/legacyfs/online/5833_contracted.gif" width="546" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table above, I would like suppliers B, D, G, H, I and J all to return "No" under the "ContractedSupplier" field - but for some reason, my script is not working.&amp;nbsp; Anyone with any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 10:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278096#M1191472</guid>
      <dc:creator />
      <dc:date>2011-07-13T10:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278097#M1191473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following script. I've removed the precedent load and it's loading all records in one table, using a two step load instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Spend:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Supplier, Spend&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 123&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 3132&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 243&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D, 345&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, 345&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F, 345&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; G, 435&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; H, 345&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I, 435&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; J, 345&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ContractedTable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Supplier, Contracted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F, Y&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (Spend) LOAD Supplier,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Contracted as ContractedX&lt;/P&gt;&lt;P&gt;RESIDENT ContractedTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FinalTable:&lt;/P&gt;&lt;P&gt;LOAD Supplier,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(ContractedX) = 0, 'N', ContractedX) AS Contracted,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Spend&lt;/P&gt;&lt;P&gt;RESIDENT Spend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES Spend, ContractedTable;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense to you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 10:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278097#M1191473</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-13T10:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278098#M1191474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this.&amp;nbsp; If i wanted to keep my "Spend" table, and include the "Y/N" contracted flag within the Spend table, how do I adjust this - ie my first thoughts were that this would have to be done with a preceding load - but I cannot get it to work...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 11:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278098#M1191474</guid>
      <dc:creator />
      <dc:date>2011-07-13T11:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278099#M1191475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That preceding load will not work because the joined table doesn't exist yet (it will exist at the end of the load). Although you are doing here two steps, you are keeping all the information from the Spend table, and you can create and modify as many fields as you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even rename the table to its original Spend name, if that suits you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 11:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278099#M1191475</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-13T11:48:34Z</dc:date>
    </item>
    <item>
      <title>Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278100#M1191476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&amp;nbsp; Perhaps i need to clarify a bit further...&amp;nbsp;&amp;nbsp; In my "real" document, I have 1 large fact table (Purchases), in which I would like to append the "Contracted" Y/N flag against.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a separate table which identifies which suppliers are contracted (ie = Y).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was wanting to achieve, was simply to join the "contracted" "Y" value to my "Purchases" table, and where no value has been returned, automatically set to "N".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="contracted2.gif" class="jive-image-thumbnail jive-image" height="206" onclick="" src="https://community.qlik.com/legacyfs/online/5843_contracted2.gif" width="542" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my "Purchases" table is already big / contains a lot of fields, do I therefore need to join all the remaining fields to the "FinalTable" as per your example, and then rename the table back to "Purchases"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 11:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278100#M1191476</guid>
      <dc:creator />
      <dc:date>2011-07-13T11:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278101#M1191477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about a map with a default value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ContractedTable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;MAPPING &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Supplier, Contracted&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, Y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, Y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F, Y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Spend:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,applymap('ContractedTable',Supplier,'N') as Contracted&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Supplier, Spend&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 123&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 3132&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 243&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D, 345&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E, 345&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F, 345&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; G, 435&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; H, 345&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I, 435&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; J, 345&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 00:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278101#M1191477</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-14T00:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278102#M1191478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have tailored the above to my data, although I have an issue with the applymap statement, ie my full script runs and finishes only once I have commented out the latter part of the script (ie "Purchases' applymap")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;Contracted_Map:&lt;BR /&gt;Mapping load&lt;BR /&gt;Unique,&lt;BR /&gt;Contracted? as ContractedSupplier&lt;BR /&gt;resident ContractedSpend;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Purchases:&lt;BR /&gt;Load *,&lt;BR /&gt;applymap('Contracted_Map',Unique,'N') as ContractedSupplier&lt;BR /&gt;resident Purchases;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 14:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278102#M1191478</guid>
      <dc:creator />
      <dc:date>2011-07-14T14:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278103#M1191479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the applymap() during the initial load of the purchases table, not after.&amp;nbsp; One point of this approach is to avoid doing an extra load of any kind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 17:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278103#M1191479</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-14T17:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278104#M1191480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment, the bulk of the data that I am using is generated during the initial binary load, refering back to another QV document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to the above issue, would this now mean that I cannot use the applymap function on this table, or do you know of a workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your comment re &lt;/P&gt;&lt;P&gt;"&lt;EM&gt;One point of this approach is to avoid doing an extra load of any kind&lt;/EM&gt;." - can you expand on this point, ie are you meaning that no additional load can be performed on the "Purchases" table, once I have used an "applymap" statement, anywhere in my script?&amp;nbsp; Or just during this immediate part of the script (ie up until the ";" (semi colon)?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278104#M1191480</guid>
      <dc:creator />
      <dc:date>2011-07-18T14:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278105#M1191481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, OK, if you're loading your tables with a binary load, that's a different animal.&amp;nbsp; I assume, then, that your contracted table is loaded during the binary load as well?&amp;nbsp; In that case, I'd probably use left joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;BINARY blah blah blah;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LEFT JOIN (Spend)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Supplier&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Contracted as ContractedTemp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT ContractedTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LEFT JOIN (Spend)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;the key field(s) to the spending table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(len(ContractedTemp),ContractedTemp,'N') as Contracted&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Spend&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DROP TABLE ContractedTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I meant by avoiding doing an extra load is that had you NOT been doing a binary load, you wouldn't have needed the left joins above.&amp;nbsp; There is nothing about doing an applymap() that prevents further loads.&amp;nbsp; It was a way to NOT NEED further loads.&amp;nbsp; You're basically doing two extra loads here, the two left joins.&amp;nbsp; Mind you, you probably get all that time back and more by doing the binary load, so I'm not suggesting you change your overall approach.&amp;nbsp; I merely misunderstood how you were loading your data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above solution is VERY similar to Miguel's, just with a left join at the end instead of loading a new table.&amp;nbsp; I believe that will take less RAM than creating a new table.&amp;nbsp; I'm not certain about CPU, but I'd guess about the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278105#M1191481</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-18T16:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278106#M1191482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi John, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the above!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My "Contracted Table" is something that I have loaded into the script (and therefore excluded from the binary load).&amp;nbsp; Does this then change the approach to be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have played with the above, and can get 2 new fields appended to my "Purchases" table, however, all data rows are currently returning a "Y", ie am unable to generate a suitable script that populates un-matched suppliers to "N"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample exert of my script:&lt;/P&gt;&lt;P&gt;____________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary ".\Artemis_Qlikdatabase.qvw";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // loads the "Purchases" table from another qv doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ContractedSpend:&lt;/P&gt;&lt;P&gt;LOAD zzContracted_Family,&lt;/P&gt;&lt;P&gt; zzContracted_Class,&lt;/P&gt;&lt;P&gt; zzContracted_SupplierID,&lt;/P&gt;&lt;P&gt; Contracted?,&lt;/P&gt;&lt;P&gt; Unique&lt;/P&gt;&lt;P&gt;FROM [Contracted Spend - received.xls] (biff, embedded labels, table is UploadNew$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Purchases)&lt;BR /&gt;LOAD&lt;BR /&gt;Unique,&lt;BR /&gt;Contracted? as ContractedTemp&lt;BR /&gt;RESIDENT ContractedSpend&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Purchases)&lt;BR /&gt;LOAD&lt;BR /&gt;Unique,&lt;BR /&gt;if(len(Contracted?),Contracted?,'N') as Contracted&lt;BR /&gt;RESIDENT ContractedSpend&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;DROP TABLE ContractedSpend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;____________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have played around with: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" if(Contracted?='Y','Y','N') as Contracted "&lt;/P&gt;&lt;P&gt;" if(len(Contracted?)=1,'Y','N') as Contracted "&lt;/P&gt;&lt;P&gt;" if(len(Contracted?)=1,Contracted?,'N') as Contracted "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When inserting "ContractedTemp" instead of "Contracted?", QV returns a "field not found" error, which I guess is linked to the fact that the field has not yet been read/loaded into QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but guessing the problem lies else where, as "technically" the above statements are correct...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts, greatly appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 10:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278106#M1191482</guid>
      <dc:creator />
      <dc:date>2011-07-19T10:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278107#M1191483</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 think you have misread John's post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first left join is from your table with contracted spend data, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LEFT JOIN (Spend)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Supplier&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Contracted as ContractedTemp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT ContractedTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this creates the new Field ContractedTemp wherever there is contracted spend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second however is a left join of the spend table to itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LEFT JOIN (Spend)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;the key field(s) to the spending table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(len(ContractedTemp),ContractedTemp,'N') as Contracted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Spend&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;This tests the new field - ContractedTemp. If it exists, fine, it places the information into a new field called Contracted, if not, ie in the case of your spend being non contracted, it puts the value 'N' into the contracted field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;you will have to be careful on the key fields for this second join. Tis is the line John codes as "&lt;SPAN style="font-family: courier new,courier;"&gt;the key field(s) to the spending table&lt;/SPAN&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 11:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278107#M1191483</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-07-19T11:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278108#M1191484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the ContractedSpend table is coming from an Excel file instead of the binary load, we can go back to an applymap.&amp;nbsp; We just need to do it during a left join instead of during the intial load (since the initial load is done by binary load, we can't touch it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Binary ".\Artemis_Qlikdatabase.qvw";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ContractedSpend:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;MAPPING LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;zzContracted_SupplierID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Contracted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM [Contracted Spend - received.xls] (biff, embedded labels, table is UploadNew$)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LEFT JOIN (Purchases)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Unique,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;applymap('ContractedSpend',Supplier,'N') as Contracted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Purchases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 19:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278108#M1191484</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-19T19:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278109#M1191485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi both,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time on this, although experiancing a few issues still.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Binary ".\Artemis_Qlikdatabase.qvw";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ContractedSpend:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;MAPPING LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;zzContracted_SupplierID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;STRONG&gt;&lt;EM&gt;I use the "Unique" field as combines the SupplierID with Material, ie if contracted supplier is linked to a random Material, spend is not deemed "Contracted" &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Contracted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM [Contracted Spend - received.xls] (biff, embedded labels, table is UploadNew$)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LEFT JOIN (Purchases)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Unique,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;applymap('ContractedSpend',Supplier,'N') as Contracted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Purchases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;// have used "Unique" instead of Supplier, as this is my key field in my mapping load?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;---------------------------------------&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;EM&gt;&lt;STRONG&gt;Making the above two changes, i get an "Out of Virtual and/or logical memory" error message, which could imply I have a synthetic join?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Can anyone confirm whether my above changes to the script are valid/logical, or whether its these changes that have caused the issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Rich&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 09:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278109#M1191485</guid>
      <dc:creator />
      <dc:date>2011-07-21T09:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278110#M1191486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have miscoded the applymap function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change your code as follows and see if this improves the situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Binary ".\Artemis_Qlikdatabase.qvw";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ContractedSpend:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;MAPPING LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;zzContracted_SupplierID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Contracted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM [Contracted Spend - received.xls] (biff, embedded labels, table is UploadNew$)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('ContractedSpend',&lt;SPAN style="font-family: courier new,courier;"&gt;Unique&lt;/SPAN&gt;,'N') as Contracted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT Purchases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;the applymap looks for your "unique" value in the contractedspend table and&amp;nbsp; takes the value from teh contract? filed if the seaxcrh is sucesful. If not it will put 'N' in the Contracted?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 10:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278110#M1191486</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-07-21T10:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278111#M1191487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="error.gif" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6047_error.gif" width="450" /&gt;Hi Pat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have adjusted my script as prompted (although in the initial "MAPPING LOAD", the key field I am returning in my script is "Unique" vs "zzContracted_SupplierID") - let me know if you think I am incorrect in doing this (ie its a combination of SupplierID and Material - and is a field that exist (and works) in my QV Purchases table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running the script, my QV document fails to complete - ie it appears to be correct (ie no error messages are being returned), but my "Script Execution Progress" window does not automatically close, denoting full script has been run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can see, the applymap routine has been performed as it appears mid-way through the script, so unsure why its not completing.&amp;nbsp; According to the "SEP" window, it took 13mins to run, although window has been open for over 2hrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nb by using the "zzContracted_SupplierID" the issue is still present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using QV v8.5 - if that provides any additional insight...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As before, any thoughts greatly appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 16:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278111#M1191487</guid>
      <dc:creator />
      <dc:date>2011-07-21T16:35:02Z</dc:date>
    </item>
    <item>
      <title>Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278112#M1191488</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;post the new way in which you have coded your map and subsequent load using the applymap fucntion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure this is the area where you are having an issue by comenting out this part of the script and confirming that your error is coming from elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is PMT_Classification the last load in your script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so qv is hanging as it tries to build the final datacloud probably due to a circular reference, cartesian join or synthetic key caused by fields inadvertently having the same name in several places.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 08:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278112#M1191488</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-07-22T08:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278113#M1191489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL start="1"&gt;&lt;LI&gt;I can confirm "PMT_Classification" is my last load in my script.&lt;/LI&gt;&lt;LI&gt;Commenting out my "applymap sequence", my QV reloads the data with no problems in just over 10mins (with no synthetic joins etc...)&lt;/LI&gt;&lt;LI&gt;Reviewing the "Table Viewer" I cannot identify any duplicate fields that are being introduced as part of the applymap routine (ie 1 common field between tables = "Unique")&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Current script being used (which fails to finish data load):&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ContractedSpend:&lt;BR /&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;Unique&lt;BR /&gt;,Contracted?&lt;BR /&gt;FROM [Contracted Spend - received.xls] (biff, embedded labels, table is UploadNew$)&lt;BR /&gt;; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD *,&lt;BR /&gt;applymap('ContractedSpend',Unique,'N') as ContractedFlag&lt;BR /&gt;RESIDENT Purchases;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;EM&gt;by commenting out the final section of my applymap statement, my reload is still successfull&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;applymap('ContractedSpend',Unique,'N') as Contracted?&lt;/P&gt;&lt;P&gt;RESIDENT Purchases;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;EM&gt;one thing i've realised, is that the "Unique" field in the "Purchases" table is being defined in the previous step of the script - could this be causing the issue (ie the field that the applymap is targetting)?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zzTempContractedSpend2:&lt;BR /&gt;noconcatenate&amp;nbsp; Load&lt;BR /&gt;*, &lt;BR /&gt;if (left(zzFamily,1)&amp;lt;&amp;gt;2, zzFamily &amp;amp; '-' &amp;amp; SupplierID , zzFamily &amp;amp; '-'&amp;nbsp; &amp;amp; zzClass &amp;amp; '-' &amp;amp; SupplierID) as Unique,&amp;nbsp; // new field to be added "Unique"&lt;BR /&gt;Resident Purchases;&lt;/P&gt;&lt;P&gt;drop table Purchases;&lt;BR /&gt;rename table zzTempContractedSpend2 to Purchases;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//---------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ContractedSpend:&lt;BR /&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;Unique&lt;BR /&gt;,Contracted?&lt;BR /&gt;FROM [Contracted Spend - received.xls] (biff, embedded labels, table is UploadNew$)&lt;BR /&gt;; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;BR /&gt;applymap('ContractedSpend',Unique,'N') as ContractedTemp&lt;BR /&gt;RESIDENT Purchases;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As before, any thoughts greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 12:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278113#M1191489</guid>
      <dc:creator />
      <dc:date>2011-07-22T12:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Nulls and Joins</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278114#M1191490</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's hard to tell from this distance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you have isolated the issue as coming from the script which includes the applymap statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement is adding a new field - Contracted?, altho' in your last example it seems to change names several times in the code you post - to your Purchases table. Now look at th code you have posted where you show how the Unique field is created in the Purchases table, again this is a new field. You start by dong a noconcatenate load into a different temporary table, drop the orignal Purchases table then rename your temporary table. This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you do not seem to follow the same sequence when adding the contracted? field. Why not? I am not sure if this is the cause but if you are still stuck why not test that one out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so your code will look as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ContractedSpend:&lt;BR /&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;Unique&lt;BR /&gt;,Contracted?&lt;BR /&gt;FROM [Contracted Spend - received.xls] (biff, embedded labels, table is UploadNew$)&lt;BR /&gt;; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zzTempTableApplyMap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noconcatenate LOAD *,&lt;BR /&gt;applymap('ContractedSpend',Unique,'N') as ContractedTemp&lt;BR /&gt;RESIDENT Purchases;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Purchases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rename table zzTempTableApplyMap to Purchases;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 06:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Using-Nulls-and-Joins/m-p/278114#M1191490</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-08-04T06:54:47Z</dc:date>
    </item>
  </channel>
</rss>

