<?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: My Aggr or set analysis problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/My-Aggr-or-set-analysis-problem/m-p/1197515#M628487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(Aggr(costWeight * Count({&amp;lt;ClassTypeName = { 'Sim'}&amp;gt;} DISTINCT RecNo()]), ClassType, ClassTypeDesc))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is in a chart with more dimensions, then you need to include all the chart dimensions in the list of dimensions for the Aggr()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2016 05:12:10 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-10-03T05:12:10Z</dc:date>
    <item>
      <title>My Aggr or set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/My-Aggr-or-set-analysis-problem/m-p/1197514#M628486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have been trying to do get a total total cost:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 476px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;ClassType&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="83"&gt;ClassTypeDesc&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="96"&gt;costWeight&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;No.Recs&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="169"&gt;Cost($)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;" width="64"&gt;Total&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="83"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="96"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="64"&gt;293&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="169"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="51" rowspan="3" style="border-bottom: .5pt solid silver; border-top: none;" width="64"&gt;Sim&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="83"&gt;OPS1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="96"&gt;1.5&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="169"&gt;$1.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none; border-left: none;" width="83"&gt;OPS3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="96"&gt;2.71&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="64"&gt;43&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="169"&gt;$116.53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none; border-left: none;" width="83"&gt;OPSL4&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="96"&gt;3.35&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="64"&gt;92&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="169"&gt;$308.20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula for getting the no of Records is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="61" style="width: 486px; height: 62px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="48" width="169"&gt;count(distinct{&amp;lt;ClassTypeName = { 'Sim'}&amp;gt;}([RecNo()]))&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;How do I get the total COST which is costWeight * No. Recs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read about aggr function but I do not know where to apply the function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can give.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2016 23:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-Aggr-or-set-analysis-problem/m-p/1197514#M628486</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-10-02T23:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: My Aggr or set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/My-Aggr-or-set-analysis-problem/m-p/1197515#M628487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(Aggr(costWeight * Count({&amp;lt;ClassTypeName = { 'Sim'}&amp;gt;} DISTINCT RecNo()]), ClassType, ClassTypeDesc))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is in a chart with more dimensions, then you need to include all the chart dimensions in the list of dimensions for the Aggr()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 05:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-Aggr-or-set-analysis-problem/m-p/1197515#M628487</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-10-03T05:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: My Aggr or set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/My-Aggr-or-set-analysis-problem/m-p/1197516#M628488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan - worked beautifully,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now all I have to do is study it and figure out why &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 06:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-Aggr-or-set-analysis-problem/m-p/1197516#M628488</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-10-03T06:58:41Z</dc:date>
    </item>
  </channel>
</rss>

