<?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 Excluding Fields from Aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-Fields-from-Aggr-function/m-p/1547446#M439975</link>
    <description>&lt;P&gt;Dear Folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stuck at this point, I am using below formula.I want to exclude the impact of selecting years and yearly quarter fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(Aggr(if( (&lt;BR /&gt;(sum(SALES_GROSS_PREMIUM- SALES_AMOUNTPREMIUMREVERSALS - SALES_BROKER_FEES-SALES_COMMISSION))&lt;BR /&gt;*&lt;BR /&gt;( RangeMin(1, (RangeMax((num(GetFieldSelections(OpeningMonth))-num(SALES_COVERAGEMONTH)),0 ) /365.25)) )&lt;BR /&gt;&lt;BR /&gt;)=0,0 ,&lt;BR /&gt;( sum(SALES_GROSS_PREMIUM- SALES_AMOUNTPREMIUMREVERSALS - SALES_BROKER_FEES-SALES_COMMISSION))&lt;BR /&gt;- ((sum(SALES_GROSS_PREMIUM- SALES_AMOUNTPREMIUMREVERSALS - SALES_BROKER_FEES-SALES_COMMISSION))&lt;BR /&gt;* RangeMin(1, (RangeMax((num(GetFieldSelections(OpeningMonth))-num(SALES_COVERAGEMONTH)),0 ) /365.25)))&lt;BR /&gt;),SALES_COVERAGEMONTH)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using {&amp;lt;Year=,YearlyQuarter=&amp;gt;} in inner sum but no luck , please help out.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 11:40:31 GMT</pubDate>
    <dc:creator>engr_farhanqadr</dc:creator>
    <dc:date>2019-02-21T11:40:31Z</dc:date>
    <item>
      <title>Excluding Fields from Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-Fields-from-Aggr-function/m-p/1547446#M439975</link>
      <description>&lt;P&gt;Dear Folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stuck at this point, I am using below formula.I want to exclude the impact of selecting years and yearly quarter fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(Aggr(if( (&lt;BR /&gt;(sum(SALES_GROSS_PREMIUM- SALES_AMOUNTPREMIUMREVERSALS - SALES_BROKER_FEES-SALES_COMMISSION))&lt;BR /&gt;*&lt;BR /&gt;( RangeMin(1, (RangeMax((num(GetFieldSelections(OpeningMonth))-num(SALES_COVERAGEMONTH)),0 ) /365.25)) )&lt;BR /&gt;&lt;BR /&gt;)=0,0 ,&lt;BR /&gt;( sum(SALES_GROSS_PREMIUM- SALES_AMOUNTPREMIUMREVERSALS - SALES_BROKER_FEES-SALES_COMMISSION))&lt;BR /&gt;- ((sum(SALES_GROSS_PREMIUM- SALES_AMOUNTPREMIUMREVERSALS - SALES_BROKER_FEES-SALES_COMMISSION))&lt;BR /&gt;* RangeMin(1, (RangeMax((num(GetFieldSelections(OpeningMonth))-num(SALES_COVERAGEMONTH)),0 ) /365.25)))&lt;BR /&gt;),SALES_COVERAGEMONTH)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using {&amp;lt;Year=,YearlyQuarter=&amp;gt;} in inner sum but no luck , please help out.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-Fields-from-Aggr-function/m-p/1547446#M439975</guid>
      <dc:creator>engr_farhanqadr</dc:creator>
      <dc:date>2019-02-21T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Fields from Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-Fields-from-Aggr-function/m-p/1547453#M439977</link>
      <description>&lt;PRE&gt; have tried using {&amp;lt;Year=,YearlyQuarter=&amp;gt;} in inner sum but no luck , please help out.&lt;/PRE&gt;&lt;P&gt;Try putting the same in outer sum and aggr() as well.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-Fields-from-Aggr-function/m-p/1547453#M439977</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-02-21T11:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Fields from Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-Fields-from-Aggr-function/m-p/1547472#M439978</link>
      <description>&lt;P&gt;Try this and see if this works&lt;/P&gt;&lt;PRE&gt;Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;Year, YearlyQuarter&amp;gt;}&lt;/FONT&gt; Aggr(If( (
(Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;Year, YearlyQuarter&amp;gt;}&lt;/FONT&gt; SALES_GROSS_PREMIUM- SALES_AMOUNTPREMIUMREVERSALS - SALES_BROKER_FEES-SALES_COMMISSION))
*
( RangeMin(&lt;FONT color="#FF0000"&gt;Only({&amp;lt;Year, YearlyQuarter&amp;gt;}&lt;/FONT&gt; 1&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;, (RangeMax((Num(GetFieldSelections(OpeningMonth))-Num(&lt;FONT color="#FF0000"&gt;Only({&amp;lt;Year, YearlyQuarter&amp;gt;}&lt;/FONT&gt; SALES_COVERAGEMONTH&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;)),0 ) /365.25)) )

)=0, 0,
( Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;Year, YearlyQuarter&amp;gt;}&lt;/FONT&gt; SALES_GROSS_PREMIUM- SALES_AMOUNTPREMIUMREVERSALS - SALES_BROKER_FEES-SALES_COMMISSION))
- ((Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;Year, YearlyQuarter&amp;gt;}&lt;/FONT&gt; SALES_GROSS_PREMIUM- SALES_AMOUNTPREMIUMREVERSALS - SALES_BROKER_FEES-SALES_COMMISSION))
* RangeMin(&lt;FONT color="#FF0000"&gt;Only({&amp;lt;Year, YearlyQuarter&amp;gt;}&lt;/FONT&gt; 1&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;, (RangeMax((Num(GetFieldSelections(OpeningMonth))-Num(&lt;FONT color="#FF0000"&gt;Only({&amp;lt;Year, YearlyQuarter&amp;gt;}&lt;/FONT&gt; SALES_COVERAGEMONTH&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;)),0 ) /365.25)))
), SALES_COVERAGEMONTH)
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Feb 2019 12:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-Fields-from-Aggr-function/m-p/1547472#M439978</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-21T12:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding Fields from Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-Fields-from-Aggr-function/m-p/1547854#M440009</link>
      <description>Thanks for your response but exclusion filters should be applied only with SALES_COVERAGEMONTH&lt;BR /&gt;RangeMin(1, (RangeMax((num(GetFieldSelections(OpeningMonth))-num(only({&amp;lt;Year, YearlyQuarter&amp;gt;}SALES_COVERAGEMONTH))),0 ) /365.25))&lt;BR /&gt;&lt;BR /&gt;it is working now.</description>
      <pubDate>Fri, 22 Feb 2019 07:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-Fields-from-Aggr-function/m-p/1547854#M440009</guid>
      <dc:creator>engr_farhanqadr</dc:creator>
      <dc:date>2019-02-22T07:56:43Z</dc:date>
    </item>
  </channel>
</rss>

