<?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: Incorrect join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incorrect-join/m-p/660889#M675220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where would I be without you Gysbert?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks AGAIN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 12:38:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-26T12:38:05Z</dc:date>
    <item>
      <title>Incorrect join</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-join/m-p/660886#M675216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a bit of a beginner at this and am trying to do a join between two tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script below seems to assign each contact every value of the Contact Record Type. Obviously each contact should only have one record type though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what i'm doing wrong?&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; CreatedDate,&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; Business__c AS Activity.Business__c,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Asset_Class__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; Region__c;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Contact&lt;/P&gt;&lt;P&gt;WHERE RecordTypeId NOT IN ('012w000000063XQ','012w000000063qu');&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Contact Record Types&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;UNQUALIFY Activity.ContactRecordTypeId;&lt;/P&gt;&lt;P&gt;ContactRecordType:&lt;/P&gt;&lt;P&gt;LEFT JOIN (Contacts)&lt;/P&gt;&lt;P&gt;ContactRecordType:&lt;/P&gt;&lt;P&gt;LOAD Id AS Activity.ConatctRecordTypeId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM RecordType&lt;/P&gt;&lt;P&gt;WHERE SobjectType IN ('Contact');&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 11:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-join/m-p/660886#M675216</guid>
      <dc:creator />
      <dc:date>2014-06-26T11:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect join</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-join/m-p/660887#M675217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check how you unqualify names - make sure you are using original names from data source. Check field names in Table viewr. And make sure &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Contact Record Type&lt;/SPAN&gt; has exactly same name in both tables. Most probably, you have fields &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Activity&lt;/SPAN&gt;.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Activity.ConatctRecordTypeId and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ContactRecordType&lt;/SPAN&gt;.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Activity.ConatctRecordTypeId&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 12:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-join/m-p/660887#M675217</guid>
      <dc:creator />
      <dc:date>2014-06-26T12:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect join</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-join/m-p/660888#M675218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Could be a typo: &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD Id AS Activity.Con&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;atct&lt;/STRONG&gt;&lt;/SPAN&gt;RecordTypeId,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 12:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-join/m-p/660888#M675218</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-26T12:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect join</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-join/m-p/660889#M675220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where would I be without you Gysbert?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks AGAIN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 12:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-join/m-p/660889#M675220</guid>
      <dc:creator />
      <dc:date>2014-06-26T12:38:05Z</dc:date>
    </item>
  </channel>
</rss>

