<?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: Aggregate Results in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744857#M719892</link>
    <description>&lt;P&gt;Not sure why that would happen... the expression you shared is the only thing you are using, right? no aggr() or if statements or anything else?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 16:58:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-09-17T16:58:54Z</dc:date>
    <item>
      <title>Aggregate Results</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744737#M719889</link>
      <description>&lt;P&gt;I have a Straight Table with the following Data&lt;/P&gt;&lt;TABLE width="841"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="170px" height="25px"&gt;Item&lt;/TD&gt;&lt;TD width="176px" height="25px"&gt;Size&lt;/TD&gt;&lt;TD width="138px" height="25px"&gt;Unit&lt;/TD&gt;&lt;TD width="96px" height="25px"&gt;Stock&lt;/TD&gt;&lt;TD width="260px" height="25px"&gt;Unit Stock&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="170px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="176px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="138px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="96px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="260px" height="25px"&gt;247,204&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="170px" height="25px"&gt;Shirt&lt;/TD&gt;&lt;TD width="176px" height="25px"&gt;Shirt8&lt;/TD&gt;&lt;TD width="138px" height="25px"&gt;8&lt;/TD&gt;&lt;TD width="96px" height="25px"&gt;14,100&lt;/TD&gt;&lt;TD width="260px" height="25px"&gt;112,800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="170px" height="25px"&gt;Shirt&lt;/TD&gt;&lt;TD width="176px" height="25px"&gt;Shirt4&lt;/TD&gt;&lt;TD width="138px" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="96px" height="25px"&gt;33,601&lt;/TD&gt;&lt;TD width="260px" height="25px"&gt;134,404&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unit Stock field is calculated by Unit*Stock&lt;/P&gt;&lt;P&gt;Expression for 'Unit' is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr( [Unit],[Size]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression for 'Stock' is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Sum(Stock), Size)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But when I remove 'Size' from the table, the table is shown as&amp;nbsp;&lt;/P&gt;&lt;TABLE width="665"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="171"&gt;Item&lt;/TD&gt;&lt;TD width="138"&gt;Size&lt;/TD&gt;&lt;TD width="96"&gt;Unit&lt;/TD&gt;&lt;TD width="260"&gt;Stock&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Shirt&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I achieve the first table without showing 'Size' column?&lt;/P&gt;&lt;P&gt;If I remove aggr in 'Stock',&amp;nbsp; and use (Sum( Stock ), it is doing 12 (8+4) * 47701 (14100+33601) instead of&amp;nbsp;&amp;nbsp;(8*14100) + (4*33601).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My end table should look like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="542px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="213px"&gt;Item&lt;/TD&gt;&lt;TD width="328px"&gt;Stock&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="213px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="328px"&gt;247204&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="213px"&gt;Shirt&lt;/TD&gt;&lt;TD width="328px"&gt;247204&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where Stock is calculated as&amp;nbsp;(8*14100) + (4*33601).&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744737#M719889</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2024-11-15T23:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Results</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744761#M719890</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Unit * Stock)&lt;/LI-CODE&gt;&lt;P&gt;or this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Aggr(Sum(Unit * Stock), Item, Size, Unit))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 13:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744761#M719890</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-17T13:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Results</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744834#M719891</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date = {"$(=Date(vMaxDate, 'MM/DD/YYYY'))"}&amp;gt;} [Stock])&lt;/STRONG&gt; for calculating my Stock as I need to see only at Stocks for recent date. I am not sure if this is causing an issue but when I remove Size, Unit, the Stock column shows '-'&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 15:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744834#M719891</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-09-17T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Results</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744857#M719892</link>
      <description>&lt;P&gt;Not sure why that would happen... the expression you shared is the only thing you are using, right? no aggr() or if statements or anything else?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 16:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744857#M719892</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-17T16:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Results</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744860#M719893</link>
      <description>&lt;P&gt;To calculate the stock, yes.&amp;nbsp;&lt;STRONG&gt;Sum({$&amp;lt;Date = {"$(=Date(vMaxDate, 'MM/DD/YYYY'))"}&amp;gt;} [Stock])&amp;nbsp;&lt;/STRONG&gt;is how I find the Stock for the latest date and doing a Sum on it. Nothing else.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 17:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744860#M719893</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-09-17T17:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Results</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744874#M719894</link>
      <description>&lt;P&gt;Would you be able to share a sample where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 17:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1744874#M719894</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-17T17:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Results</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1745051#M719896</link>
      <description>&lt;P&gt;I think I got what the issue is. I had to implement the logic I was using in the script instead of the chart and that fixed it. Weird but true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 12:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Results/m-p/1745051#M719896</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-09-18T12:18:11Z</dc:date>
    </item>
  </channel>
</rss>

