<?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 aggr calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-calculation/m-p/556726#M207831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer attachment of&amp;nbsp; jpg file showing sales with Region count in dimension now &lt;/P&gt;&lt;P&gt;I want to calculate sales but not using rmcount dimension ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using&amp;nbsp; AGGR how to calculate sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="295"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="142"&gt;RM&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="62"&gt;Rmcount&lt;/TD&gt;&lt;TD class="xl65" width="91"&gt;sale&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17"&gt;Total&lt;/TD&gt;&lt;TD class="xl67"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-left: none;"&gt;49.60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;BANGALORE - 1 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: none;"&gt;6.60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 1 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1.58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 2 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;8.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 2 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;3.97&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 3 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;6.60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 3 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;3.31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 4 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;8.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;MYSORE ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;6.20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;MYSORE ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;4.84&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My formula is&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if( Rmcount &amp;gt; 1,&lt;/P&gt;&lt;P&gt; ((SUM(INV_INVVAL)-SUM(SRN_INVVAL))/100000)*Rmcount,&lt;/P&gt;&lt;P&gt;(SUM({$&amp;lt;FinancialYear=,FiscalYear={$(=max(FiscalYear))},&lt;/P&gt;&lt;P&gt;[Posting Date]={"&amp;gt;=$(=YearStart(max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]),0,4))&amp;lt;=$(=max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]))"}&amp;gt;}[Gross Sales Amount]) &lt;/P&gt;&lt;P&gt;- &lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;FinancialYear=,FiscalYear={$(=max(FiscalYear))},&lt;/P&gt;&lt;P&gt;[Posting Date]={"&amp;gt;=$(=YearStart(max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]),0,4))&amp;lt;=$(=max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]))"}&amp;gt;}[Sales Return Amount])&lt;/P&gt;&lt;P&gt;)/100000&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VIKAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Nov 2013 07:02:08 GMT</pubDate>
    <dc:creator>vikasmahajan</dc:creator>
    <dc:date>2013-11-21T07:02:08Z</dc:date>
    <item>
      <title>aggr calculation</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-calculation/m-p/556726#M207831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer attachment of&amp;nbsp; jpg file showing sales with Region count in dimension now &lt;/P&gt;&lt;P&gt;I want to calculate sales but not using rmcount dimension ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using&amp;nbsp; AGGR how to calculate sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="295"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="142"&gt;RM&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="62"&gt;Rmcount&lt;/TD&gt;&lt;TD class="xl65" width="91"&gt;sale&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17"&gt;Total&lt;/TD&gt;&lt;TD class="xl67"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-left: none;"&gt;49.60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17"&gt;BANGALORE - 1 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-left: none;"&gt;6.60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 1 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1.58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 2 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;8.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 2 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;3.97&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 3 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;6.60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 3 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;3.31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;BANGALORE - 4 ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;8.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;MYSORE ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;6.20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;MYSORE ABM&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;4.84&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My formula is&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if( Rmcount &amp;gt; 1,&lt;/P&gt;&lt;P&gt; ((SUM(INV_INVVAL)-SUM(SRN_INVVAL))/100000)*Rmcount,&lt;/P&gt;&lt;P&gt;(SUM({$&amp;lt;FinancialYear=,FiscalYear={$(=max(FiscalYear))},&lt;/P&gt;&lt;P&gt;[Posting Date]={"&amp;gt;=$(=YearStart(max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]),0,4))&amp;lt;=$(=max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]))"}&amp;gt;}[Gross Sales Amount]) &lt;/P&gt;&lt;P&gt;- &lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;FinancialYear=,FiscalYear={$(=max(FiscalYear))},&lt;/P&gt;&lt;P&gt;[Posting Date]={"&amp;gt;=$(=YearStart(max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]),0,4))&amp;lt;=$(=max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}[Posting Date]))"}&amp;gt;}[Sales Return Amount])&lt;/P&gt;&lt;P&gt;)/100000&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VIKAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 07:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-calculation/m-p/556726#M207831</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-11-21T07:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: aggr calculation</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-calculation/m-p/556727#M207832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved by using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(aggr( sum(sales),dimensions))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;// sum(aggr(if(expressoin2&amp;gt;1,sum(Venta * REBATE_NORMAL),0),dim1,dim2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 09:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-calculation/m-p/556727#M207832</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2013-11-21T09:01:38Z</dc:date>
    </item>
  </channel>
</rss>

