<?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 JOIN failing using a Crosstable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340093#M619429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the Crosstable function and then Join to another table i previously loaded.&amp;nbsp; The join does not seem to be working as I am getting duplicate data.&amp;nbsp; I've attached a sample of the QVW that is not working.&amp;nbsp; I know I can load them as separate tables and then join to them, but I would like to know why I cannot get this to work using Crosstable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2017 21:07:51 GMT</pubDate>
    <dc:creator>cliff_clayman</dc:creator>
    <dc:date>2017-05-12T21:07:51Z</dc:date>
    <item>
      <title>JOIN failing using a Crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340093#M619429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the Crosstable function and then Join to another table i previously loaded.&amp;nbsp; The join does not seem to be working as I am getting duplicate data.&amp;nbsp; I've attached a sample of the QVW that is not working.&amp;nbsp; I know I can load them as separate tables and then join to them, but I would like to know why I cannot get this to work using Crosstable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 21:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340093#M619429</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-05-12T21:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN failing using a Crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340094#M619430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know your original data, but the CROSSTABLE LOAD transform your input file that maybe shows a single line per 'Supplier number-BS' to multiple lines (one for each column of your input file).&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you then JOIN this table to another table by key &lt;SPAN style="font-size: 13.3333px;"&gt;'Supplier number-BS', your records in this table will be duplicated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;That's how a JOIN works. Maybe you are missing another, additional key field?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 22:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340094#M619430</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-12T22:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN failing using a Crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340095#M619431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I provided some data, could you take a look at it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 22:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340095#M619431</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-05-12T22:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN failing using a Crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340096#M619432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your data, I see each "Supplier number-BS" has a row for each "Business State"&amp;nbsp; generated by the crosstable,&amp;nbsp; which is what I would expect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "Supplier number-BS"=0 has multiple rows for a state, but I expect that is because table Sheet1 had multiple rows for the "0" value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 22:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340096#M619432</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-05-12T22:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN failing using a Crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340097#M619433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Cliff Clayman wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If I provided some data, could you take a look at it?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Sure, that would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide some sample data (your excel file or some INLINE data tables that show the same effect, the QVW should be reloadable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And maybe point us to some records where your data gets duplicated and what you expect to see instead given your input files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2017 09:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340097#M619433</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-13T09:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN failing using a Crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340098#M619434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;And what do you expect to see e.g. for Contact SAP Vendor No.=&amp;nbsp; 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this field is not a primary key in your table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2017 17:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340098#M619434</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-13T17:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN failing using a Crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340099#M619435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if the value is 0, then I expect to see 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2017 17:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340099#M619435</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-05-13T17:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN failing using a Crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340100#M619436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that's not what I meant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were mentioning that data gets duplicated in your OP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I see, that's due to your key field not being a primary key, so you get multiple records in your first table joined with multiple records in your second table (for business states that show a true&amp;nbsp; StateFlag for multiple lines).&lt;/P&gt;&lt;P&gt;The JOIN will create a resulting table with all combinations of first table records and second table records per key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this sounds reasonable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or put it another way: you mentioned that you can get your expected result using a different script.&lt;/P&gt;&lt;P&gt;Could you post this script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2017 18:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340100#M619436</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-13T18:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN failing using a Crosstable</title>
      <link>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340101#M619437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you maybe looking for something like attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the record number as additional key for the JOIN, so a StateFlag only joins to the record where it was defined.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2017 21:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JOIN-failing-using-a-Crosstable/m-p/1340101#M619437</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-13T21:26:49Z</dc:date>
    </item>
  </channel>
</rss>

