<?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 Where to insert aR = {'aR'} into Average aR expression ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-to-insert-aR-aR-into-Average-aR-expression/m-p/1117360#M630674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;Hi All&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;Sunny give me the below expression work fine , it return 5,234,000 at Table 1 is correct :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;DIV style="text-align: inherit;"&gt;Aggr(If(YearMonth = Max(TOTAL YearMonth),&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;RangeAvg(Below(RangeSum(&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;Above(RangeSum(Above(Sum({&amp;lt;year, month&amp;gt;}[Amount]*-1), 0, RowNo()))),&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;-Sum(TOTAL Aggr(Sum({&amp;lt;year, month&amp;gt;}[Amount]*-1), YearMonth))), 0, Max(TOTAL {&amp;lt;year = {$(=Max(year))}&amp;gt;} month)))), (YearMonth, (NUMERIC, desc)))&lt;/P&gt;&lt;/DIV&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;I need to insert aR = {'aR'} into above expression , i try as below expression at table 2 :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;DIV style="text-align: inherit;"&gt;Aggr(If(YearMonth = Max(TOTAL YearMonth),&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;RangeAvg(Below(RangeSum(&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;Above(RangeSum(Above(Sum({&amp;lt;year, month,aR = {'aR'}&amp;gt;}[Amount]*-1), 0, RowNo()))),&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;-Sum(TOTAL Aggr(Sum({&amp;lt;year, month,aR = {'aR'}&amp;gt;}[Amount]*-1), YearMonth))), 0, Max(TOTAL {&amp;lt;year = {$(=Max(year))}&amp;gt;} month)))), (YearMonth, (NUMERIC, desc)))&lt;/P&gt;&lt;/DIV&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;It return wrong value 4,927,000 , where did i go wrong ? ( Remark when not select filter aR it give wrong value)&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2016 02:21:31 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2016-08-03T02:21:31Z</dc:date>
    <item>
      <title>Where to insert aR = {'aR'} into Average aR expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-to-insert-aR-aR-into-Average-aR-expression/m-p/1117360#M630674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;Hi All&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;Sunny give me the below expression work fine , it return 5,234,000 at Table 1 is correct :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;DIV style="text-align: inherit;"&gt;Aggr(If(YearMonth = Max(TOTAL YearMonth),&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;RangeAvg(Below(RangeSum(&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;Above(RangeSum(Above(Sum({&amp;lt;year, month&amp;gt;}[Amount]*-1), 0, RowNo()))),&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;-Sum(TOTAL Aggr(Sum({&amp;lt;year, month&amp;gt;}[Amount]*-1), YearMonth))), 0, Max(TOTAL {&amp;lt;year = {$(=Max(year))}&amp;gt;} month)))), (YearMonth, (NUMERIC, desc)))&lt;/P&gt;&lt;/DIV&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;I need to insert aR = {'aR'} into above expression , i try as below expression at table 2 :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;DIV style="text-align: inherit;"&gt;Aggr(If(YearMonth = Max(TOTAL YearMonth),&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;RangeAvg(Below(RangeSum(&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;Above(RangeSum(Above(Sum({&amp;lt;year, month,aR = {'aR'}&amp;gt;}[Amount]*-1), 0, RowNo()))),&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;-Sum(TOTAL Aggr(Sum({&amp;lt;year, month,aR = {'aR'}&amp;gt;}[Amount]*-1), YearMonth))), 0, Max(TOTAL {&amp;lt;year = {$(=Max(year))}&amp;gt;} month)))), (YearMonth, (NUMERIC, desc)))&lt;/P&gt;&lt;/DIV&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;It return wrong value 4,927,000 , where did i go wrong ? ( Remark when not select filter aR it give wrong value)&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 02:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-to-insert-aR-aR-into-Average-aR-expression/m-p/1117360#M630674</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-03T02:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where to insert aR = {'aR'} into Average aR expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-to-insert-aR-aR-into-Average-aR-expression/m-p/1117361#M630675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my qvf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 02:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-to-insert-aR-aR-into-Average-aR-expression/m-p/1117361#M630675</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-03T02:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Where to insert aR = {'aR'} into Average aR expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-to-insert-aR-aR-into-Average-aR-expression/m-p/1117362#M630676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(If(&lt;SPAN style="color: #ff0000;"&gt;Only({&amp;lt;aR = {'aR'}&amp;gt;}&lt;/SPAN&gt;YearMonth&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; = Max(TOTAL &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;aR = {'aR'}&amp;gt;}&lt;/SPAN&gt; YearMonth),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeAvg(Below(RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above(RangeSum(Above(Sum({&amp;lt;year, month, aR = {'aR'}&amp;gt;}[Amount]*-1), 0, RowNo()))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Sum(TOTAL &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;STRONG&gt;{&amp;lt;aR = {'aR'}&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Sum({&amp;lt;year, month,aR = {'aR'}&amp;gt;}[Amount]*-1), YearMonth))), 0, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(TOTAL {&amp;lt;year = {$(=Max(&lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;STRONG&gt;{&amp;lt;aR = {'aR'}&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;year))},&lt;SPAN style="color: #ff0000;"&gt; aR = {'aR'}&lt;/SPAN&gt;&amp;gt;} month)))), (YearMonth, (NUMERIC, desc)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 02:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-to-insert-aR-aR-into-Average-aR-expression/m-p/1117362#M630676</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-03T02:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where to insert aR = {'aR'} into Average aR expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-to-insert-aR-aR-into-Average-aR-expression/m-p/1117363#M630677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Work fine now , total 3 mistake i make.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 02:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-to-insert-aR-aR-into-Average-aR-expression/m-p/1117363#M630677</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-08-03T02:59:18Z</dc:date>
    </item>
  </channel>
</rss>

