<?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: Complex Aggregation Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476568#M177947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abey .&lt;BR /&gt;I dont think partial sum will help .Please see the attached QVW&lt;/P&gt;&lt;P&gt;The market volume should be 3215 instead of 3315. Please also see my previous comment which I have updated.&lt;BR /&gt;I am not a pro in Qlikview but does the answer lie in using aggr function ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 13:01:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-25T13:01:47Z</dc:date>
    <item>
      <title>Complex Aggregation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476564#M177943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Need your help with respect to this.&lt;BR /&gt;At a most granular level I have product and market with their product sales and market sales . I want the &lt;STRONG&gt;Market Volume&lt;/STRONG&gt; to be calculated for the product based on a formula like &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Primary Market+Secondary Market1+min(Secondary Market2,Primary Market)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For territory A and Product1 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Market Volume=100+20+min(30,100)=150&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This calculation has to be done for each territory,product combination and the roll up on district or region should also work .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we do this in Qlikview? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Territory&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Market&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product Sales&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Market Sales&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Product1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Primary Market&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Product1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Secondary Market1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Product1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Secondary Market2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 06:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476564#M177943</guid>
      <dc:creator />
      <dc:date>2013-09-25T06:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggregation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476565#M177944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see is the attached qvw helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarrds,&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 07:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476565#M177944</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-09-25T07:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggregation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476566#M177945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abey,&lt;BR /&gt;Thanks for your speedy reply .&lt;BR /&gt;I have a doubt here . If we use any other dimension for the chart .Lets say District instead of territory .&lt;/P&gt;&lt;P&gt;So&amp;nbsp; Now we want the market volume of each District.&lt;BR /&gt;The market volume should be calculated on the districts and then the roll ups should happen .&lt;BR /&gt;Is that possible.&lt;/P&gt;&lt;P&gt;The way it works right now is that it rolls up the different market (Primary,secondary 1 and secondary 2) first and then uses the formula .&lt;/P&gt;&lt;P&gt;I want just the roll ups on the district .Please look a the below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;Secondary Market 2&lt;/TD&gt;&lt;TD width="64"&gt;Secondary Market1&lt;/TD&gt;&lt;TD width="64"&gt;Primary Market&lt;/TD&gt;&lt;TD width="64"&gt;Market Volume&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Territory 1&lt;/TD&gt;&lt;TD align="right"&gt;1500&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;1600&lt;/TD&gt;&lt;TD align="right"&gt;3110&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Territory 2&lt;/TD&gt;&lt;TD align="right"&gt;500&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;TD align="right"&gt;105&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;P&gt;District=(Territory1,Terrritory2)&lt;/P&gt;&lt;P&gt;Required(On Rollup)&lt;/P&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;STRONG&gt;3215&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Obtained&lt;/TD&gt;&lt;TD align="right"&gt;2000&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;TD align="right"&gt;1650&lt;/TD&gt;&lt;TD align="right"&gt;&lt;STRONG&gt;3315&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using the formula as indicated in the QVW that you attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 11:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476566#M177945</guid>
      <dc:creator />
      <dc:date>2013-09-25T11:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggregation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476567#M177946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if you are referring to the partial sum option. For that you will have to make the chart as pivot and then in presentation tab you will get the option for enabling the partial sum for the required dimension (in this case District).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is not the issue, please post a sample qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 11:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476567#M177946</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2013-09-25T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Complex Aggregation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476568#M177947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abey .&lt;BR /&gt;I dont think partial sum will help .Please see the attached QVW&lt;/P&gt;&lt;P&gt;The market volume should be 3215 instead of 3315. Please also see my previous comment which I have updated.&lt;BR /&gt;I am not a pro in Qlikview but does the answer lie in using aggr function ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 13:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476568#M177947</guid>
      <dc:creator />
      <dc:date>2013-09-25T13:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Complex Aggregation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476569#M177948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Abey,&lt;BR /&gt;Nailed it .Thanks for your help .&lt;BR /&gt;The aggr function based on territory first creates a virtual table where we can aggregate based on our formula.&lt;/P&gt;&lt;P&gt;Then we can do the rollup on district using Sum().&lt;/P&gt;&lt;P&gt;Please look at the attached QVW&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/88388"&gt;Abey Chandy&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 17:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggregation-Help/m-p/476569#M177948</guid>
      <dc:creator />
      <dc:date>2013-09-25T17:35:08Z</dc:date>
    </item>
  </channel>
</rss>

