<?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: Field1, Field2 from separate tables not exist in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Field1-Field2-from-separate-tables-not-exist/m-p/1008240#M342326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Replace table label &lt;SPAN style="font-family: 'courier new', courier;"&gt;PAYMENT_TABLE:&lt;/SPAN&gt; (including the colon) with the following:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CONCATENATE (INVOICE_TABLE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;BTW payments without invoices?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Dec 2015 09:10:49 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-12-14T09:10:49Z</dc:date>
    <item>
      <title>Field1, Field2 from separate tables not exist</title>
      <link>https://community.qlik.com/t5/QlikView/Field1-Field2-from-separate-tables-not-exist/m-p/1008238#M342324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are working on an A/R dashboard in Sage ACCPAC and are having an issue to separate Invoices and Payments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main INVOICES and PAYMENTS are in one table and are identified by IN/CA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL_TABLE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_TYPE, INVOICE_ID, PAYMENT_REF&lt;/P&gt;&lt;P&gt;IN, IN001, PY001&lt;/P&gt;&lt;P&gt;IN, IN002,PY002&lt;/P&gt;&lt;P&gt;IN, IN003, PY003&lt;/P&gt;&lt;P&gt;CA, PY001. IN001&lt;/P&gt;&lt;P&gt;CA PY004, &lt;/P&gt;&lt;P&gt;CA PY005, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we want to do is separate the Invoices and Payments and then concatenate them back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem we are facing is that we do not want to include the Payments which have already been attached to an Invoice.&lt;/P&gt;&lt;P&gt;For example PY001 is PAYMENT_REF as well as INVOICE_ID.&amp;nbsp; It is duplicated.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So in the PAYMENT_TABLE we do not want to include this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE_TABLE:&lt;/P&gt;&lt;P&gt;LOAD INVOICE_ID as INV_ID, &lt;/P&gt;&lt;P&gt;PAYMENT_REF&lt;/P&gt;&lt;P&gt;RESIDENT ALL_TABLE&lt;/P&gt;&lt;P&gt;WHERE INVOICE_TYPE = 'IN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAYMENT_TABLE:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="font-size: 13.3333px;"&gt;INVOICE_ID, PAYMENT_REF &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;RESIDENT ALL_TABLE&lt;/P&gt;&lt;P&gt;WHERE INVOICE_TYPE = 'CA' and NOT EXISTS (&lt;SPAN style="font-size: 13.3333px;"&gt;INV_ID, &lt;SPAN style="font-size: 13.3333px;"&gt;PAYMENT_REF)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how do we concatenate them into one table? We tried using not exists but it seems that we are not using it properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will appreciate if someone can assist us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 08:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field1-Field2-from-separate-tables-not-exist/m-p/1008238#M342324</guid>
      <dc:creator>sjhussain</dc:creator>
      <dc:date>2015-12-14T08:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Field1, Field2 from separate tables not exist</title>
      <link>https://community.qlik.com/t5/QlikView/Field1-Field2-from-separate-tables-not-exist/m-p/1008239#M342325</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;Check the attached document but is this what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="264"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="90"&gt;INVOICE_TYPE&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="86"&gt;INVOICE_ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="88"&gt;PAYMENT_REF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;IN&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;IN001&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;PY001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;IN&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;IN002&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;PY002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;IN&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;IN003&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;PY003&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;CA&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;PY004&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;CA&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;PY005&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;INVOICE_TYPE, INVOICE_ID, PAYMENT_REF&lt;/P&gt;&lt;P&gt;IN, IN001, PY001&lt;/P&gt;&lt;P&gt;IN, IN002,PY002&lt;/P&gt;&lt;P&gt;IN, IN003, PY003&lt;/P&gt;&lt;P&gt;CA, PY001, IN001&lt;/P&gt;&lt;P&gt;CA, PY004,&lt;/P&gt;&lt;P&gt;CA, PY005,&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoices:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;Resident ALL&lt;/P&gt;&lt;P&gt;WHERE INVOICE_TYPE = 'IN';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Payments:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;Resident ALL&lt;/P&gt;&lt;P&gt;WHERE INVOICE_TYPE = 'CA' AND LEN(PAYMENT_REF)=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table ALL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 09:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field1-Field2-from-separate-tables-not-exist/m-p/1008239#M342325</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-12-14T09:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field1, Field2 from separate tables not exist</title>
      <link>https://community.qlik.com/t5/QlikView/Field1-Field2-from-separate-tables-not-exist/m-p/1008240#M342326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Replace table label &lt;SPAN style="font-family: 'courier new', courier;"&gt;PAYMENT_TABLE:&lt;/SPAN&gt; (including the colon) with the following:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CONCATENATE (INVOICE_TABLE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;BTW payments without invoices?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 09:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field1-Field2-from-separate-tables-not-exist/m-p/1008240#M342326</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-14T09:10:49Z</dc:date>
    </item>
  </channel>
</rss>

