<?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 Problem aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239333#M89974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not sure I'm following, but if I am, what you want might be this expression added to your chart?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(aggr(avg(AmountD),Store,Account))&lt;BR /&gt;/sum(total aggr(avg(AmountD),Store))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Oct 2010 23:54:26 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-10-15T23:54:26Z</dc:date>
    <item>
      <title>Problem aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239330#M89971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, everybody. I´m trying to aggregate AmountD (Driver), but I need average for months, and sum for other dimmensions. I should get 134 for all acounts in the attached doc. Please, I need some help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 22:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239330#M89971</guid>
      <dc:creator />
      <dc:date>2010-10-15T22:40:31Z</dc:date>
    </item>
    <item>
      <title>Problem aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239331#M89972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand the question. You already have 134 in the attached doc. Did you want to be able to deselect everything and still see 134? Did you want some sort of chart with a total line that's 134?&lt;/P&gt;&lt;P&gt;What you say sounds kind of like sum(aggr(avg(AmountD),Month)), but that's very similar to your current expression. It does produce 134 with your current selections, but not if you clear them.&lt;/P&gt;&lt;P&gt;Not really sure what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 23:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239331#M89972</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-15T23:07:47Z</dc:date>
    </item>
    <item>
      <title>Problem aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239332#M89973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer John, what I need is to divide all accounts by the number of employees (or the driver I choose). Now for energy I have 154, and Gas 113, all must be divided by 134 (the number of employees of store A+B).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 23:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239332#M89973</guid>
      <dc:creator />
      <dc:date>2010-10-15T23:37:04Z</dc:date>
    </item>
    <item>
      <title>Problem aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239333#M89974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not sure I'm following, but if I am, what you want might be this expression added to your chart?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(aggr(avg(AmountD),Store,Account))&lt;BR /&gt;/sum(total aggr(avg(AmountD),Store))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 23:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239333#M89974</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-15T23:54:26Z</dc:date>
    </item>
    <item>
      <title>Problem aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239334#M89975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an extra column for the ratio. I would like to show first the number of employees (AmountD) and then the ratio=Amount/AmountD. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:370pt;border-collapse:collapse;" width="490"&gt;&lt;COLGROUP&gt;&lt;COL span="5" style="width:74pt;mso-width-source:userset;mso-width-alt:3584;" width="98" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl65" height="17" style="width:74pt;height:12.75pt;background-color:whitesmoke;border:gainsboro 0.5pt solid;" width="98"&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro 0.5pt solid;border-left:gainsboro;width:74pt;border-bottom:gainsboro 0.5pt solid;background-color:whitesmoke;" width="98"&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro 0.5pt solid;border-left:gainsboro;width:74pt;border-bottom:gainsboro 0.5pt solid;background-color:whitesmoke;" width="98"&gt;&lt;STRONG&gt;Driver&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro 0.5pt solid;border-left:gainsboro;width:74pt;border-bottom:gainsboro 0.5pt solid;background-color:whitesmoke;" width="98"&gt;&lt;STRONG&gt;AmountD&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro 0.5pt solid;border-left:gainsboro;width:74pt;border-bottom:gainsboro 0.5pt solid;background-color:whitesmoke;" width="98"&gt;&lt;STRONG&gt;Ratio&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl66" height="17" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro 0.5pt solid;border-bottom:gainsboro 0.5pt solid;height:12.75pt;background-color:white;"&gt;Energy&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;1,370&lt;/TD&gt;&lt;TD class="xl66" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;Employee&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;134&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;10.22&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl66" height="17" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro 0.5pt solid;border-bottom:gainsboro 0.5pt solid;height:12.75pt;background-color:white;"&gt;Water&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;2,104&lt;/TD&gt;&lt;TD class="xl66" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;Employee&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;134&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;15.70&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl66" height="17" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro 0.5pt solid;border-bottom:gainsboro 0.5pt solid;height:12.75pt;background-color:white;"&gt;Gas&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;2,131&lt;/TD&gt;&lt;TD class="xl66" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;Employee&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;134&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro;border-bottom:gainsboro 0.5pt solid;background-color:white;"&gt;15.90&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;When I replace your formula in Ratio Expression I get other numbers. Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 00:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239334#M89975</guid>
      <dc:creator />
      <dc:date>2010-10-16T00:16:52Z</dc:date>
    </item>
    <item>
      <title>Problem aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239335#M89976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I thought you wanted for Energy, 154/134, for Water, 134/134 and for Gas, 113/134. Instead you want for Energy, 1370/134, for Water 2104/134 and for Gas, 2131/134?&lt;/P&gt;&lt;P&gt;Same idea, just a different expression on top, the one you used for Amount instead of AmountD:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(Amount)&lt;BR /&gt;/sum(total aggr(avg(AmountD),Store))&lt;/P&gt;&lt;P&gt;However, it looks like you've already solved it, since your chart shows the numbers you want???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 00:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239335#M89976</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-16T00:33:27Z</dc:date>
    </item>
    <item>
      <title>Problem aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239336#M89977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thks John, It´s almost right, but now the numbers shouldn´t change when I make any selection in accounts. How can I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 00:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239336#M89977</guid>
      <dc:creator />
      <dc:date>2010-10-16T00:54:11Z</dc:date>
    </item>
    <item>
      <title>Problem aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239337#M89978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess use set analysis to ignore the account?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(Amount)/sum(total aggr(avg({&amp;lt;Account=&amp;gt;} AmountD),Store))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 00:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-aggr-function/m-p/239337#M89978</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-16T00:58:57Z</dc:date>
    </item>
  </channel>
</rss>

