<?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 Sub aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sub-aggregation/m-p/986726#M961506</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;I have a few traders, each trades different types of instruments. Each trade gets a deal ID.&lt;/P&gt;&lt;P&gt;There are deals (swap trades) that have both positive and negative values to the deal, i.e. the deal has two lines in the table.&lt;/P&gt;&lt;P&gt;I'd like to net the each deal values and then calculate the absolute total values for each trader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the best place to add that sub aggregation - in the table load script (how?) or as an expression in a chart object?&lt;/P&gt;&lt;P&gt;I created a separate table with just the deal ID and trade amounts. Then wanted to show each trader's total absolute trade amount.&lt;/P&gt;&lt;P&gt;I tried the latter with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(DISTINCT Sum(Trade_Amount),deal_ID) &lt;/P&gt;&lt;P&gt;But got one single aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2015 13:36:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-15T13:36:39Z</dc:date>
    <item>
      <title>Sub aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Sub-aggregation/m-p/986726#M961506</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;I have a few traders, each trades different types of instruments. Each trade gets a deal ID.&lt;/P&gt;&lt;P&gt;There are deals (swap trades) that have both positive and negative values to the deal, i.e. the deal has two lines in the table.&lt;/P&gt;&lt;P&gt;I'd like to net the each deal values and then calculate the absolute total values for each trader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the best place to add that sub aggregation - in the table load script (how?) or as an expression in a chart object?&lt;/P&gt;&lt;P&gt;I created a separate table with just the deal ID and trade amounts. Then wanted to show each trader's total absolute trade amount.&lt;/P&gt;&lt;P&gt;I tried the latter with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(DISTINCT Sum(Trade_Amount),deal_ID) &lt;/P&gt;&lt;P&gt;But got one single aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 13:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sub-aggregation/m-p/986726#M961506</guid>
      <dc:creator />
      <dc:date>2015-10-15T13:36:39Z</dc:date>
    </item>
  </channel>
</rss>

