<?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 Complex Aggr Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248092#M94456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a shot with item as the dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(sum([Net Sales]) &amp;gt; 0, sum(total &amp;lt;STORE&amp;gt; [Net Sales])),STORE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the row is item 11, it should run through all of the stores and if they have a sum of [Net Sales] &amp;gt; 0, it should sum the entire store's sales (sum(total &amp;lt;STORE&amp;gt; [Net Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to add item in the aggr off the top of my head I'm not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest I dont' know if that syntax is going to work but I think the total &amp;lt;STORE&amp;gt; part should give you some direction at least... if that's what you wanted I'm not exactly sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2011 15:19:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-04T15:19:27Z</dc:date>
    <item>
      <title>Complex Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248089#M94453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi, I am trying to create an expression that will identify stores with sales on each item, and sum their net sales for all items.&amp;nbsp; I can count the number of qualifying stores a simple count distinct function, but haven't been able to come up with the right AGGR function to return my desired results.&amp;nbsp; Here is a sample of what I am trying to acheive:&lt;/DIV&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 195px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl71" colspan="3" height="20" style="border-width: 0.5pt 0px 0px 0.5pt; border-style: solid none none solid; border-color: windowtext black black windowtext; width: 105pt; height: 15pt; background-color: transparent;" width="139"&gt;Data&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 30pt;"&gt;&lt;TD class="xl66" height="40" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 30pt; background-color: transparent;"&gt;STORE_NO&lt;/TD&gt;&lt;TD style="border: 0px black; background-color: transparent;"&gt;ITEM#&lt;/TD&gt;&lt;TD class="xl70" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; width: 42pt; background-color: transparent;" width="56"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;Item Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl74" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: transparent;"&gt;1&lt;/TD&gt;&lt;TD class="xl75" style="border: 0px black; background-color: transparent;"&gt;10&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;1,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl78" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: yellow;"&gt;1&lt;/TD&gt;&lt;TD class="xl79" style="border: 0px black; background-color: yellow;"&gt;11&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;1,050 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl74" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: transparent;"&gt;1&lt;/TD&gt;&lt;TD class="xl75" style="border: 0px black; background-color: transparent;"&gt;12&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;1,075 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl78" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: yellow;"&gt;2&lt;/TD&gt;&lt;TD class="xl79" style="border: 0px black; background-color: yellow;"&gt;11&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;2,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl74" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: transparent;"&gt;2&lt;/TD&gt;&lt;TD class="xl75" style="border: 0px black; background-color: transparent;"&gt;12&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;2,020 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl74" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: transparent;"&gt;2&lt;/TD&gt;&lt;TD class="xl75" style="border: 0px black; background-color: transparent;"&gt;13&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;2,075 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl78" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: yellow;"&gt;3&lt;/TD&gt;&lt;TD class="xl79" style="border: 0px black; background-color: yellow;"&gt;11&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;3,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl78" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: yellow;"&gt;4&lt;/TD&gt;&lt;TD class="xl79" style="border: 0px black; background-color: yellow;"&gt;11&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;4,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl74" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: transparent;"&gt;4&lt;/TD&gt;&lt;TD class="xl75" style="border: 0px black; background-color: transparent;"&gt;12&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;4,050 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl74" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: transparent;"&gt;4&lt;/TD&gt;&lt;TD class="xl75" style="border: 0px black; background-color: transparent;"&gt;13&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;4,075 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl76" height="20" style="border-width: 0px 0px 0.5pt 0.5pt; border-style: none none solid solid; border-color: black black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;5&lt;/TD&gt;&lt;TD class="xl77" style="border-width: 0px 0px 0.5pt; border-style: none none solid; border-color: black black windowtext; background-color: transparent;"&gt;12&lt;/TD&gt;&lt;TD class="xl69" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;5,000 &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 105pt; border-collapse: collapse;" width="139"&gt;&lt;TBODY&gt;&lt;TR style="height: 30pt;"&gt;&lt;TD class="xl65" height="40" style="border-width: 0.5pt 0px 0px 0.5pt; border-style: solid none none solid; border-color: windowtext black black windowtext; width: 55pt; height: 30pt; background-color: transparent;" width="73"&gt;STORE_NO&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0.5pt 0.5pt 0px 0px; border-style: solid solid none none; border-color: windowtext windowtext black black; width: 50pt; background-color: transparent;" width="66"&gt;Net Store Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl69" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: yellow;"&gt;1&lt;/TD&gt;&lt;TD class="xl70" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: yellow;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;11,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl69" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: yellow;"&gt;2&lt;/TD&gt;&lt;TD class="xl70" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: yellow;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;22,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl69" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: yellow;"&gt;3&lt;/TD&gt;&lt;TD class="xl70" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: yellow;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;33,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl69" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: yellow;"&gt;4&lt;/TD&gt;&lt;TD class="xl70" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: yellow;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;44,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl68" height="20" style="border-width: 0px 0px 0.5pt 0.5pt; border-style: none none solid solid; border-color: black black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;5&lt;/TD&gt;&lt;TD class="xl66" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;55,000 &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 122pt; border-collapse: collapse;" width="163"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl73" colspan="2" height="20" style="border-width: 0.5pt 0.5pt 0px; border-style: solid solid none; border-color: windowtext black red windowtext; width: 122pt; height: 15pt; background-color: transparent;" width="163"&gt;Desired Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 30pt;"&gt;&lt;TD class="xl65" height="40" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 30pt; background-color: transparent;"&gt;ITEM#&lt;/TD&gt;&lt;TD class="xl67" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; width: 74pt; background-color: transparent;" width="99"&gt;Net Sales from Stores Selling&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl69" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: transparent;"&gt;10&lt;/TD&gt;&lt;TD class="xl66" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;11,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl71" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: yellow;"&gt;11&lt;/TD&gt;&lt;TD class="xl72" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: yellow;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;110,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl69" height="20" style="border-width: 0px 0px 0px 0.5pt; border-style: none none none solid; border-color: black black black windowtext; height: 15pt; background-color: transparent;"&gt;12&lt;/TD&gt;&lt;TD class="xl66" style="border-width: 0px 0.5pt 0px 0px; border-style: none solid none none; border-color: black windowtext black black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;132,000 &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl70" height="20" style="border-width: 0px 0px 0.5pt 0.5pt; border-style: none none solid solid; border-color: black black windowtext windowtext; height: 15pt; background-color: transparent;"&gt;13&lt;/TD&gt;&lt;TD class="xl68" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black windowtext windowtext black; background-color: transparent;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;$&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;66,000 &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The 'Net Sales from Stores Selling' comes from summing Net Store Sales from Stores 1, 2, 3, 4 ($11,000+$22,000+$33,000+$44,000).&amp;nbsp; I thought i would have success with a sum(distinct Net Sales), but I want to qualifier to be STORE#, not Net Sales.&amp;nbsp; Here is the starting point of my expression:&lt;/DIV&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=sum(aggr(sum({$&amp;lt;[Department#]=, [Category#]=,[Sub Category#]=, [Brand]=, [Vendor#]=, [ITEM#]=, &lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;[STORE_UPC]=&amp;gt;} Total &amp;lt;[STORE_NO]&amp;gt; Net Store Sales), [ITEM#], [STORE_NO]))&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt; Thank you for reading my question, any help in the right direction will be very much appreciated!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 20:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248089#M94453</guid>
      <dc:creator />
      <dc:date>2011-08-03T20:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248090#M94454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your example data, a simple sum("Net Store Sales") produces your desired result.&amp;nbsp; I assume I'm not understanding the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 21:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248090#M94454</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-03T21:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248091#M94455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for looking at my question.&amp;nbsp; I will try to rephrase what I am trying to do.&amp;nbsp; In the calculation, I want to basically identify exact stores selling each item, then sum their total sales of all items.&amp;nbsp; If we have 3 stores, and stores 1 &amp;amp; 2 sold item A, I want to add the total net sales (items A-Z) for stores 1 &amp;amp; 2.&amp;nbsp; Then if stores 1 &amp;amp; 3 sold item B, I want to sum the total net sales (items A-Z) for stores 1 &amp;amp; 3.&amp;nbsp; I hope this is a clearer explanation, thank you again for your time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 12:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248091#M94455</guid>
      <dc:creator />
      <dc:date>2011-08-04T12:22:10Z</dc:date>
    </item>
    <item>
      <title>Complex Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248092#M94456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a shot with item as the dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(sum([Net Sales]) &amp;gt; 0, sum(total &amp;lt;STORE&amp;gt; [Net Sales])),STORE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the row is item 11, it should run through all of the stores and if they have a sum of [Net Sales] &amp;gt; 0, it should sum the entire store's sales (sum(total &amp;lt;STORE&amp;gt; [Net Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to add item in the aggr off the top of my head I'm not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be honest I dont' know if that syntax is going to work but I think the total &amp;lt;STORE&amp;gt; part should give you some direction at least... if that's what you wanted I'm not exactly sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 15:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248092#M94456</guid>
      <dc:creator />
      <dc:date>2011-08-04T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248093#M94457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I undestand your need, you could use a set with P (possible) modificator:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;STORE_NO=P({&amp;lt;[ITEM#]={11}&amp;gt;} STORE_NO )&amp;gt;}&amp;nbsp; [Item Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 15:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248093#M94457</guid>
      <dc:creator />
      <dc:date>2011-08-04T15:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248094#M94458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have been able to get it to work in a sample qvw at the item level (except for the total, &amp;amp; I'm still having some problems in my actual app, but I guess as long as I have the concept down, I'll eventually get it).&amp;nbsp; When I try to go up a level to item category, the expression no longer returns my desired results.&amp;nbsp; Also, the subtotal is summing up rows, and if the calc was working correctly, it should be summing the store sales.&amp;nbsp; I'm attaching the test doc that I have been playing with.&amp;nbsp; Heres the expression that is working the best so far:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[STORE#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Qty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Category]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Product#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[STORE#]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;I appreciate the help!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 17:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248094#M94458</guid>
      <dc:creator />
      <dc:date>2011-08-04T17:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248095#M94459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so the second table in your sample data should be calculated from the first, doesn't exist in the data model, and should &lt;EM&gt;not&lt;/EM&gt; have the values you show.&amp;nbsp; It should instead look like this if we built it as a chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;STORE_NO,Net Store Sales&lt;BR /&gt;1,1000+1050+1075 = 3125&lt;BR /&gt;2,2000+2020+2075 = 6095&lt;BR /&gt;3,3000&lt;BR /&gt;4,4000+4050+4075 = 12125&lt;BR /&gt;5,5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so the chart you actually want should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ITEM#,Net Sales from Stores Selling&lt;BR /&gt;10,3125&lt;BR /&gt;11,3125+6095+3000+12125 = 25345&lt;BR /&gt;12,3125+6095+12125+5000 = 26345&lt;BR /&gt;13,6095+12125 = 18220&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get that, use this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum(aggr(sum({&amp;lt;"ITEM#"=&amp;gt;} total &amp;lt;"STORE_NO"&amp;gt; "Item Sales"),"ITEM#","STORE_NO"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; Looks like I was a bit too late, and you probably won't like my total line either.&amp;nbsp; Looking into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: &lt;SPAN style="font-family: courier new,courier;"&gt;if(dimensionality(),sum(aggr(sum({&amp;lt;"ITEM#"=&amp;gt;} total &amp;lt;"STORE_NO"&amp;gt; "Item Sales"),"ITEM#","STORE_NO")),sum("Item Sales"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Edit:&amp;nbsp; Ah, yeah, you're right.&amp;nbsp; You don't need the set analysis.&amp;nbsp; The "total" keyword has already told us to ignore item.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Edit:&amp;nbsp; No, I was right the first time.&amp;nbsp; You need the set analysis so the row totals don't change when you select an item.&amp;nbsp; I haven't figured out how to make the total work with selections yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Edit:&amp;nbsp; OK, this expression seems to work.&amp;nbsp; I'd hope there's a simpler way, but I'm not figuring it out.&amp;nbsp; See new attached file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(dimensionality()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,sum(aggr(sum({&amp;lt;"ITEM#"=&amp;gt;} total &amp;lt;"STORE_NO"&amp;gt; "Item Sales"),"ITEM#","STORE_NO"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,sum({&amp;lt;"ITEM#"=,"STORE_NO"=P()&amp;gt;} total &amp;lt;"STORE_NO"&amp;gt; "Item Sales"))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 17:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248095#M94459</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-04T17:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248096#M94460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Great!!&amp;nbsp; Thank you again for getting me this far.&amp;nbsp; I think you're latest formula even gets me to what I thought was my next step in making it dynamic so I can have 1 expression that will calc correctly at any level (item, category, sub-cat, brand).&amp;nbsp; It seems to be working in my actual application as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 18:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248096#M94460</guid>
      <dc:creator />
      <dc:date>2011-08-04T18:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248097#M94461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I guess I'm not quite there on the dynamic part.&amp;nbsp; Is there a way to represent multiple fields in the aggr function?&amp;nbsp; I tried adding the different possible fields &amp;amp; separating them with commas, but it breaks the calc from working as I need.&amp;nbsp; I updated my sample doc with the added scenario.&amp;nbsp; Code that works:&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Product#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Category"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Brand"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"SubCat"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Invoice#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"STORE#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Qty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Category&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"STORE#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Product#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Category"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"SubCat"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Brand"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"STORE#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"STORE#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Qty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;It breaks when I modify it to this:&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Product#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Category"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Brand"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"SubCat"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Invoice#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"STORE#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Qty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;SPAN style="color: #800000;"&gt;"Category"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;"SubCat"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;"Brand"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"STORE#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Product#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Category"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"SubCat"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Brand"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"STORE#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"STORE#"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Qty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 19:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr-Question/m-p/248097#M94461</guid>
      <dc:creator />
      <dc:date>2011-08-04T19:54:09Z</dc:date>
    </item>
  </channel>
</rss>

