<?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: Don't load data without associated records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620939#M1110971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saying it isn't "loaded correctly now" doesn't tell me what it was doing before vs. what it's doing wrong now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 17:14:59 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2014-03-10T17:14:59Z</dc:date>
    <item>
      <title>Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620934#M1110966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three tables I'm loading. Activities, Contacts and Accounts (related as per below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="54654" alt="table.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/54654_table.bmp" style="width: 620px; height: 215px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I change my load script for Accounts, to only include records which have associated activities?&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.AccountId;&lt;/P&gt;&lt;P&gt;UNQUALIFY AccountIdforTag;&lt;/P&gt;&lt;P&gt;Accounts:&lt;/P&gt;&lt;P&gt;LOAD Id AS Activity.AccountId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id AS AccountIdforTag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsDeleted,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country__c;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Account;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly how would I amend mt load script for Contacts, to only include contacts with related activities?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.ConatctRecordTypeId;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.AccountId;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.ContactId;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.Department_Role__c;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.Business__c;&lt;/P&gt;&lt;P&gt;Contacts:&lt;/P&gt;&lt;P&gt;LOAD Id as Activity.ContactId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountId AS Activity.AccountId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecordTypeId AS Activity.ConatctRecordTypeId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Department_Role__c AS Activity.Department_Role__c,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inactive_Contact__c,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business__c AS Activity.Business__c;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Contact;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 16:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620934#M1110966</guid>
      <dc:creator />
      <dc:date>2014-03-10T16:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620935#M1110967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use instruction EXISTS ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 16:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620935#M1110967</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-10T16:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620936#M1110968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load your Activities table first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then load Contacts, then load Accounts using where clauses:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.ConatctRecordTypeId;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.AccountId;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.ContactId;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.Department_Role__c;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.Business__c;&lt;/P&gt;&lt;P&gt;Contacts:&lt;/P&gt;&lt;P&gt;LOAD Id as Activity.ContactId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountId AS Activity.AccountId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecordTypeId AS Activity.ConatctRecordTypeId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Department_Role__c AS Activity.Department_Role__c,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inactive_Contact__c,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business__c AS Activity.Business__c&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE exists(Activity.ContactId,Id)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Contact;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.AccountId;&lt;/P&gt;&lt;P&gt;UNQUALIFY AccountIdforTag;&lt;/P&gt;&lt;P&gt;Accounts:&lt;/P&gt;&lt;P&gt;LOAD Id AS Activity.AccountId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id AS AccountIdforTag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsDeleted,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country__c&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE exists(Activity.AccountId,Id)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Account;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 16:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620936#M1110968</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-10T16:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620937#M1110969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where Exists is the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 16:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620937#M1110969</guid>
      <dc:creator />
      <dc:date>2014-03-10T16:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620938#M1110970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicole. This worked great, EXCEPT the two tables 'roles' and 'Business' (as per the screenshot above) don't seem to have loaded correctly now. That change have affected them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are semi-colon separate values, so my load script for the table was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Businesses:&lt;/P&gt;&lt;P&gt;LOAD Activity.ContactId, TRIM(SUBFIELD(Activity.Business__c, ';')) AS Activity.Business&lt;/P&gt;&lt;P&gt;RESIDENT Contacts;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620938#M1110970</guid>
      <dc:creator />
      <dc:date>2014-03-10T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620939#M1110971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saying it isn't "loaded correctly now" doesn't tell me what it was doing before vs. what it's doing wrong now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620939#M1110971</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-10T17:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620940#M1110972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies. The businesses table is now a data island and no longer linked to the contact table. Same for the Roles table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table 2.bmp" class="jive-image" src="/legacyfs/online/54656_table 2.bmp" style="width: 620px; height: 218px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620940#M1110972</guid>
      <dc:creator />
      <dc:date>2014-03-10T17:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620941#M1110973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you're using different code for the Roles and Businesses tables than what was in your original post.&amp;nbsp; In your original post the field names in those tables in the screenshot are Activity.____, but in this new screenshot they are Roles.___ and Businesses.____.&amp;nbsp; That shouldn't have anything to do with the code that I gave you with the where exists clause.&amp;nbsp; You must have changed something else (I'm guessing with a QUALIFY).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620941#M1110973</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-10T17:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620942#M1110974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange. I definitely didn't change anything with teh script. It's something to do with the load order I think, as perviously the business and roles were loaded after the contacts but before Activities, and now they're loaded after Contacts and Activities&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620942#M1110974</guid>
      <dc:creator />
      <dc:date>2014-03-10T17:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620943#M1110975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you have UNQUALIFY *; before the business and roles tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or just leave them between the Contacts and Accounts tables, as that shouldn't hurt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620943#M1110975</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-10T17:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Don't load data without associated records</title>
      <link>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620944#M1110976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicole, the UNQUALIFY statement worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 18:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Don-t-load-data-without-associated-records/m-p/620944#M1110976</guid>
      <dc:creator />
      <dc:date>2014-03-10T18:17:08Z</dc:date>
    </item>
  </channel>
</rss>

