<?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: Re: Problem with Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561820#M692243</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;If i just keep the tables assosiated i will still be two lines and two amount with -56200. if I sum all transactions on this invoice it should be 0, but it doesen't. I do need this fields in the same fact table on the same aggregated level, for ex Invoice No. The whole modell is about if the supplier are due or not or if they have payed the whole amount.&lt;/P&gt;
&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hm, I think it should work with the linked tables. Maybe your data model is different than I am assuming. Please note that the way you aggregate may influence the results (i.e. just aggregating fields from the one linked SupplierAmountLocal table should only aggregate the one line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of both methods, first using a linked table, second a concatenated fact table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;OUT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;InvoiceNo, SupplierAmountLocal&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;90520783, -56200&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IN:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;InvoiceNo, SupplierPayAmountLocal, Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;90520783, 21515, 2013-09-01&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;90520783, 34685, 2013-09-02&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONCAT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD InvoiceNo, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SupplierAmountLocal as Value, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'OUT' as DIR &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident OUT;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONCATENATE &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD InvoiceNo, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SupplierPayAmountLocal as Value, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date as Date2, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'IN' as DIR &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident IN;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing the aggregation not in the load script has the advantage that you don't lose details (i.e. the single date balances).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check attached.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 08:13:05 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-09-03T08:13:05Z</dc:date>
    <item>
      <title>Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561810#M692233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem to do a join, my problem is this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="left_Join.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46108_left_Join.png" /&gt;&lt;/P&gt;&lt;P&gt;invoiced amount is -56200, but this invoice has been payed at two different times. So when I do a left Join it will duplicate the row with amount -56200. I have try to sum(Supplier Pay_Amount_LOCAL) and group by on Invoice No before i Make my Join, but without result, what i'm I missing here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Stabben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 19:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561810#M692233</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2013-09-02T19:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561811#M692234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does the structure of your original tables look like? Could you post your script code snippet?&lt;/P&gt;&lt;P&gt;(Or even better, a small sample app with some sample data).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 19:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561811#M692234</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-02T19:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561812#M692235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Temp:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPSINO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp;'|'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPDIVI&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;'|'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPSPYN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;'|'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPSUNO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%SINOKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ,&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPCUAM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPARAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Supplier Amount_LOCAL]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ,&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPCUAM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Supplier Amount_FOREIGN]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPCUCD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Supplier Currency]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPARAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Supplier Exchangerate]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vQvdPath)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;FPLEDG.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPTRCD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (Temp) &lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TEXT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPSINO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp;'|'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPDIVI&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;'|'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPSPYN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;'|'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPSUNO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%SINOKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPCUAM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPARAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Supplier Pay_Amount_LOCAL]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vQvdPath)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;FPLEDG.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPTRCD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=50&lt;BR /&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;First I Load with filter EPTRCD=40 and yhis has one row with -56200&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;then I join and get two rows because i have two different amount with filter EPTRCD=50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;//Stabben&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 19:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561812#M692235</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2013-09-02T19:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561813#M692236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A join may not be appropriate then. Why do you need to join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could consider keeping the Supplier_Amount_LOCAL value in a separate table just linked via InvoiceNo.&lt;/P&gt;&lt;P&gt;Or maybe create a concatenated fact table with different levels of granularity (total Supplier_Amount_LOCAL value and your detailed transactions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hard to say what you need to do, because data modelling should consider your complete requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 19:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561813#M692236</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-02T19:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561814#M692237</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;If u are using the composite key use autonumber function using the both tables.&lt;/P&gt;&lt;P&gt;autonumber(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPSINO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPDIVI&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPSPYN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EPSUNO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%SINOKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Autonumber:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Returns a unique integer value for each distinct evaluated value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; encountered during the script execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 20:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561814#M692237</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2013-09-02T20:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561815#M692238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i just keep the tables assosiated i will still be two lines and two amount with -56200. if I sum all transactions on this invoice it should be 0, but it doesen't. I do need this fields in the same fact table on the same aggregated level, for ex Invoice No. The whole modell is about if the supplier are due or not or if they have payed the whole amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//stabben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 20:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561815#M692238</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2013-09-02T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561816#M692239</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;autonumber will not aggregate on Key, still two lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Stabben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 20:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561816#M692239</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2013-09-02T20:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561817#M692240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use any type of JOIN, records from first table will be repeated for each matching record of second.&lt;/P&gt;&lt;P&gt;I can see two approaches:&lt;/P&gt;&lt;P&gt;1) Keep them separated&lt;/P&gt;&lt;P&gt;2) Concatenate both tables and then run a LOAD () GROUP BY doing your sum´s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 20:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561817#M692240</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-02T20:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561818#M692241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Second way would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;(EPSINO &amp;amp;'|'&amp;amp;EPDIVI&amp;amp;'|'&amp;amp;EPSPYN&amp;amp;'|'&amp;amp;EPSUNO) as %SINOKey ,&lt;/P&gt;&lt;P&gt;(EPCUAM*EPARAT) as [Supplier Amount_LOCAL] ,&lt;/P&gt;&lt;P&gt;(EPCUAM) as [Supplier Amount_FOREIGN],&lt;/P&gt;&lt;P&gt;EPCUCD&amp;nbsp; as [Supplier Currency] ,&lt;/P&gt;&lt;P&gt;EPARAT&amp;nbsp; as [Supplier Exchangerate] ,&lt;/P&gt;&lt;P&gt;From $(vQvdPath)FPLEDG.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where EPTRCD=40&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Concatenate (Temp)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;TEXT(EPSINO &amp;amp;'|'&amp;amp;EPDIVI&amp;amp;'|'&amp;amp;EPSPYN&amp;amp;'|'&amp;amp;EPSUNO) as %SINOKey,&lt;/P&gt;&lt;P&gt;(EPCUAM * EPARAT) as [Supplier Pay_Amount_LOCAL]&lt;/P&gt;&lt;P&gt;From $(vQvdPath)FPLEDG.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where EPTRCD=50;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; %SINOKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum([Supplier Amount_LOCAL]) as [Supplier Amount_LOCAL],&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum([Supplier Amount_FOREIGN]) as [Supplier Amount_FOREIGN],&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum([Supplier Currency] ) as [Supplier Currency],&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum([Supplier Exchangerate]) as [Supplier Exchangerate],&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum([Supplier Pay_Amount_LOCAL]) as [Supplier Pay_Amount_LOCAL]&lt;/P&gt;&lt;P&gt;Resident Temp&lt;/P&gt;&lt;P&gt;Group By %SINOKey;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 20:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561818#M692241</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-09-02T20:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561819#M692242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will try that first thing tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Stabben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 21:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561819#M692242</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2013-09-02T21:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with Join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561820#M692243</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;If i just keep the tables assosiated i will still be two lines and two amount with -56200. if I sum all transactions on this invoice it should be 0, but it doesen't. I do need this fields in the same fact table on the same aggregated level, for ex Invoice No. The whole modell is about if the supplier are due or not or if they have payed the whole amount.&lt;/P&gt;
&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hm, I think it should work with the linked tables. Maybe your data model is different than I am assuming. Please note that the way you aggregate may influence the results (i.e. just aggregating fields from the one linked SupplierAmountLocal table should only aggregate the one line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of both methods, first using a linked table, second a concatenated fact table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;OUT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;InvoiceNo, SupplierAmountLocal&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;90520783, -56200&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IN:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;InvoiceNo, SupplierPayAmountLocal, Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;90520783, 21515, 2013-09-01&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;90520783, 34685, 2013-09-02&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONCAT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD InvoiceNo, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SupplierAmountLocal as Value, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'OUT' as DIR &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident OUT;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONCATENATE &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD InvoiceNo, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SupplierPayAmountLocal as Value, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date as Date2, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'IN' as DIR &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident IN;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing the aggregation not in the load script has the advantage that you don't lose details (i.e. the single date balances).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check attached.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 08:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Join/m-p/561820#M692243</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-03T08:13:05Z</dc:date>
    </item>
  </channel>
</rss>

