<?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: How To Subtract One Table From Another To Get Third Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46241#M7700</link>
    <description>&lt;P&gt;Ignore&lt;/P&gt;</description>
    <pubDate>Sat, 12 Oct 2019 20:15:09 GMT</pubDate>
    <dc:creator>pnn44794</dc:creator>
    <dc:date>2019-10-12T20:15:09Z</dc:date>
    <item>
      <title>How To Subtract One Table From Another To Get Third Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46238#M7697</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three Qlikview pivot tables that I'll call A, B and C.&amp;nbsp; Please see the attached Word document for calculated dimensions and screenshots of the tables.&amp;nbsp; I need to subtract like Product amounts (2018-Qx columns) in Table B from Table A and populate Table C with the results.&amp;nbsp; I'm not sure where to start in order to do the calculation.&amp;nbsp; It seems simple in concept, but code-wise perhaps not, but I could be wrong.&amp;nbsp; Table A Product Amount - Table B Product Amount = Table C Product Amount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, with the screenshots you'll see, Table C should have 0 amounts for both quarters and for all products.&amp;nbsp; This is a good thing because that means I had no variance in what was forecasted (Table A) and what was received and bucketed (Table B).&amp;nbsp; I also have a problem getting the Product column for Table C in the same order as Tables' A and B, but the bigger problem is the calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "Order Quarter --&amp;gt;" is a label given to order_date_quarter for Table A and LF_effective_quarter for Table's B and C.&amp;nbsp; There's one expression used for Table's A and B (not sure what's needed for Table C obviously) and they are included in the attached Word document.&amp;nbsp; I've also attached sample data, appropriately scrambled, in case it's needed.&amp;nbsp; The data used for Table's A and B are joined by Qlikview using project_id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;As always, any and all help and responses are appreciated.&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2019 20:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46238#M7697</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2019-10-12T20:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How To Subtract One Table From Another To Get Third Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46239#M7698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've solved the sort order problem by creating a Product Group table and then loading it in load order.&amp;nbsp; I could still use some help though with the calculation, if anyone has any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an FYI, there's one project_id that ties Table A to Table B and that is 14243.&amp;nbsp; However, if needed, it would probably be best to use DM # from Table A and LF_project_ext_project_no from Table B.&amp;nbsp; The value would be 88888888*.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 19:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46239#M7698</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-05-07T19:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How To Subtract One Table From Another To Get Third Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46240#M7699</link>
      <description>&lt;P&gt;My latest attempt has been the following expression.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2019 20:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46240#M7699</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2019-10-12T20:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How To Subtract One Table From Another To Get Third Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46241#M7700</link>
      <description>&lt;P&gt;Ignore&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2019 20:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46241#M7700</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2019-10-12T20:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: How To Subtract One Table From Another To Get Third Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46242#M7701</link>
      <description>&lt;P&gt;I've resolved the issue by doing the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Re-did the data model by de-coupling the Forecast (has all forecasts) and Latest Forecast fact tables - They should have been independent to begin with&lt;/LI&gt;&lt;LI&gt;Created a third fact table with just the bulk forecast being put forward&lt;/LI&gt;&lt;LI&gt;Created a link table to link the Latest Forecast with the newly created fact table (Note that this creates a loosely coupled data model, but that's probably ok in this case as they shouldn't be solidly linked anyway - Still, I need to look at fixing this too)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Problem solved.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2019 20:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46242#M7701</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2019-10-12T20:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: How To Subtract One Table From Another To Get Third Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46243#M7702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Test.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 17:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46243#M7702</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2018-05-21T17:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How To Subtract One Table From Another To Get Third Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46244#M7703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;test&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 19:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Subtract-One-Table-From-Another-To-Get-Third-Table/m-p/46244#M7703</guid>
      <dc:creator>Kai_DesEtages</dc:creator>
      <dc:date>2018-05-21T19:23:38Z</dc:date>
    </item>
  </channel>
</rss>

