<?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 two expressions from the same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-two-expressions-from-the-same-table/m-p/286262#M579525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to combine 2 calculations within the same expression. I have one dimension (Year) and for Year 2003 and 2004 I need to perform one calculation and for the other Years another. I need to display the results on the same table. I'm currently using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;YEAR = {'2003', '2004'}&amp;gt;} AGGR(SUM(AVG(SALES), ID, YEAR, MONTH)) /&lt;/P&gt;&lt;P&gt;﻿SUM({&amp;lt;YEAR = {'2003', '2004'}&amp;gt;} AGGR(SUM(AVG(AMOUNT), ID, YEAR, MONTH))&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;YEAR = {2005, '2006', '2007'}&amp;gt;} AGGR(SUM(SUM(SALES), ID, YEAR, MONTH)) /&lt;/P&gt;&lt;P&gt;﻿SUM({&amp;lt;YEAR = {'2005', '2006', '2007'}&amp;gt;} AGGR(SUM(SUM(AMOUNT), ID, YEAR, MONTH))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview will compile only the second calculation and discard the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2012 17:00:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-15T17:00:18Z</dc:date>
    <item>
      <title>Join two expressions from the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-expressions-from-the-same-table/m-p/286262#M579525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to combine 2 calculations within the same expression. I have one dimension (Year) and for Year 2003 and 2004 I need to perform one calculation and for the other Years another. I need to display the results on the same table. I'm currently using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;YEAR = {'2003', '2004'}&amp;gt;} AGGR(SUM(AVG(SALES), ID, YEAR, MONTH)) /&lt;/P&gt;&lt;P&gt;﻿SUM({&amp;lt;YEAR = {'2003', '2004'}&amp;gt;} AGGR(SUM(AVG(AMOUNT), ID, YEAR, MONTH))&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;YEAR = {2005, '2006', '2007'}&amp;gt;} AGGR(SUM(SUM(SALES), ID, YEAR, MONTH)) /&lt;/P&gt;&lt;P&gt;﻿SUM({&amp;lt;YEAR = {'2005', '2006', '2007'}&amp;gt;} AGGR(SUM(SUM(AMOUNT), ID, YEAR, MONTH))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview will compile only the second calculation and discard the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 17:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-expressions-from-the-same-table/m-p/286262#M579525</guid>
      <dc:creator />
      <dc:date>2012-02-15T17:00:18Z</dc:date>
    </item>
    <item>
      <title>Join two expressions from the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-expressions-from-the-same-table/m-p/286263#M579526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&amp;nbsp;&amp;nbsp; can't the IF be used, i mean conditional sum?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp; tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 17:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-expressions-from-the-same-table/m-p/286263#M579526</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2012-02-15T17:46:56Z</dc:date>
    </item>
  </channel>
</rss>

