<?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 Aggregation formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189045#M52081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. you need 3 expressions:&lt;/P&gt;&lt;P&gt;1) sum({&amp;lt;Original TPP= {'0900'}&amp;gt;} Tot_Wt)&lt;/P&gt;&lt;P&gt;2) sum({&amp;lt;Original TPP= {'0905'}&amp;gt;} Tot_Wt)&lt;/P&gt;&lt;P&gt;3) sum({&amp;lt;Original TPP= {'0910'}&amp;gt;} Tot_Wt)&lt;/P&gt;&lt;P&gt;So if you select any status (for example 22) you will see what you need. If no any selections (in status field) calculations will be for ALL statuses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 13:52:18 GMT</pubDate>
    <dc:creator>sparur</dc:creator>
    <dc:date>2010-06-15T13:52:18Z</dc:date>
    <item>
      <title>Aggregation formula</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189042#M52078</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;I am using a formula .&lt;/P&gt;&lt;P&gt;=-sum(aggr(max([Status])=12 and Original_transportation='0905',(External_HU)))&lt;/P&gt;&lt;P&gt;What this does for me is it gives me distinct count of External_HU's having status=12 and original_transportation='0905'. I want to slightly tweak this formula to not give me count but the sum of tot.wt of each External_HU. The following works to give me the total weight but fails when I insert the condition original_transportation='0905'.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=count(if(Status=12 ,(External_HU)))&lt;/P&gt;&lt;P&gt;Any help appreciated&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 13:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189042#M52078</guid>
      <dc:creator />
      <dc:date>2010-06-15T13:22:44Z</dc:date>
    </item>
    <item>
      <title>Aggregation formula</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189043#M52079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be I don't understand your problem.&lt;/P&gt;&lt;P&gt;but may be that expression will help you:&lt;/P&gt;&lt;P&gt;count({&amp;lt;status = {12}&amp;gt;} External_HU)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 13:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189043#M52079</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-06-15T13:31:25Z</dc:date>
    </item>
    <item>
      <title>Aggregation formula</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189044#M52080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sir for the Reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to incorporate 2 conditions when I do a sum(Tot_Wt)&lt;/P&gt;&lt;P&gt;1&amp;gt; ORiginal_TPP='0905'&lt;/P&gt;&lt;P&gt;2&amp;gt; Status=22&lt;/P&gt;&lt;P&gt;If I use a If condition then I manually have to select status=22 and Original TPP= '0905'&lt;/P&gt;&lt;P&gt;I want to be able to select from list box status =22 and then have a bar chart showing me the total wt stacked for 0905, 0900 and 0910 (i.e. I will have 3 expressions in teh chart for the 3 original TPP's)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 13:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189044#M52080</guid>
      <dc:creator />
      <dc:date>2010-06-15T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Aggregation formula</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189045#M52081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. you need 3 expressions:&lt;/P&gt;&lt;P&gt;1) sum({&amp;lt;Original TPP= {'0900'}&amp;gt;} Tot_Wt)&lt;/P&gt;&lt;P&gt;2) sum({&amp;lt;Original TPP= {'0905'}&amp;gt;} Tot_Wt)&lt;/P&gt;&lt;P&gt;3) sum({&amp;lt;Original TPP= {'0910'}&amp;gt;} Tot_Wt)&lt;/P&gt;&lt;P&gt;So if you select any status (for example 22) you will see what you need. If no any selections (in status field) calculations will be for ALL statuses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 13:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189045#M52081</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-06-15T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Aggregation formula</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189046#M52082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sir. You have solved my situation.&lt;/P&gt;&lt;P&gt;Last question about this.&lt;/P&gt;&lt;P&gt;The first 2 expressions are fine. I want the third one to include all values that are not included by the first 2 expressions but I am getting incorrect values using the not equal operator. Am I doing something wrong here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;round(sum({&amp;lt;Original_transportation &amp;lt;&amp;gt; {'0905','0900','0910','0920'}&amp;gt;} Tot_wt_KG),10 &lt;P&gt;)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 06:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-formula/m-p/189046#M52082</guid>
      <dc:creator />
      <dc:date>2010-06-16T06:37:21Z</dc:date>
    </item>
  </channel>
</rss>

