<?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: calculate from 2 tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculate-from-2-tables/m-p/689529#M1064014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over here i cant see any primarykey joining both the tables.&lt;/P&gt;&lt;P&gt;You should have primary key joining both the table, then you can join them using any join if needed and create a custom fiels using resident table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KC&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 05:37:40 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2014-09-25T05:37:40Z</dc:date>
    <item>
      <title>calculate from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-from-2-tables/m-p/689527#M1064012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to sum up the 2 fields in red: opening balance and sum. Since they are from different tables, how can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,date(floor(timestamp#(Replace(Date,' ',' '), 'YYYYMMDDhhmm'))) as DATERANGE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bal:&lt;/P&gt;&lt;P&gt;LOAD Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location as LOCATION, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;Opening_Balance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is '|', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clbal:&lt;/P&gt;&lt;P&gt; load *,&lt;/P&gt;&lt;P&gt;if(peek(location)=location,peek(Opening_Balance),0) as ClosingBalance,&lt;/P&gt;&lt;P&gt;//peek(Opening_Balance) as Closing_Balance,&lt;/P&gt;&lt;P&gt;peek(location) as NextRowStore&lt;/P&gt;&lt;P&gt;resident bal order by location,Date desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;opbaltrans:&lt;/P&gt;&lt;P&gt;load *, Receipts+Returns+non_new_transfer_in+non_new_transfer_out+transfer_out+transfer_in+issue_from_store+&lt;/P&gt;&lt;P&gt;intmxmp+return_to_store+total_receipts_returns+stock_adjustments+adjustments_to_current_balance+&lt;/P&gt;&lt;P&gt;loan_transfer_out+loan_transfer_in as &lt;SPAN style="color: #ff0000;"&gt;sum&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 05:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-from-2-tables/m-p/689527#M1064012</guid>
      <dc:creator />
      <dc:date>2014-09-25T05:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculate from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-from-2-tables/m-p/689528#M1064013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two options are there&lt;/P&gt;&lt;P&gt;1. Find the primary key and join it in the back end, do resident and sum up.&lt;/P&gt;&lt;P&gt;2. find the perfect key to link them and do the sum in front end i.e. in the chart itself. If u a have the assocaition correct it can be done..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 05:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-from-2-tables/m-p/689528#M1064013</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-09-25T05:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculate from 2 tables</title>
      <link>https://community.qlik.com/t5/QlikView/calculate-from-2-tables/m-p/689529#M1064014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over here i cant see any primarykey joining both the tables.&lt;/P&gt;&lt;P&gt;You should have primary key joining both the table, then you can join them using any join if needed and create a custom fiels using resident table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KC&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 05:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculate-from-2-tables/m-p/689529#M1064014</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-09-25T05:37:40Z</dc:date>
    </item>
  </channel>
</rss>

