<?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 Rangeavg bug with zero values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210364#M388343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a pivot table where I'm using rangeavg +&amp;nbsp; agg to calculate the last 3 months average for current month. It works like a charm when there are no zeros in any of the months, but when there are, the result is 0 even when there's data for the other 2 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know the solution to this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2016 20:35:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-10T20:35:34Z</dc:date>
    <item>
      <title>Rangeavg bug with zero values?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210364#M388343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a pivot table where I'm using rangeavg +&amp;nbsp; agg to calculate the last 3 months average for current month. It works like a charm when there are no zeros in any of the months, but when there are, the result is 0 even when there's data for the other 2 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know the solution to this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 20:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210364#M388343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-10T20:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rangeavg bug with zero values?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210365#M388344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be do RangeSum() and divide by 3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 20:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210365#M388344</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T20:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rangeavg bug with zero values?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210366#M388345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that, but rangesum is returning 0 as well.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(Rangesum(above(sum({&amp;lt;MONTH1=,MONTH=,MONTH_NAME=,YEAR=,QUARTER=,Q=&amp;gt;}IF(SUBJECT='DELIVER', LN_COUNT,0)),0,3)),CUSTOMER_CHANNEL_GROUP,CUST_RTM_GROUP,SEGMENT,PODI_GROUPED,PLANNING_STRATEGIC_REGION_CD,MONTH))/3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 20:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210366#M388345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-10T20:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rangeavg bug with zero values?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210367#M388346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share an example where it isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 20:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210367#M388346</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T20:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rangeavg bug with zero values?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210368#M388347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the dashboard I have, in the container is the tab "Order", column "Den" (this is the one that calcualtes the 3 months avg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data for the average is the one in the tab "Delivery" column "Den"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 1 big fact table with a "Subject" table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually noticed that there's no "DELIVER" data in Sept for MCA, this is causing the 0....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea how to fix it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 21:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210368#M388347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-10T21:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rangeavg bug with zero values?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210369#M388348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do I see MCA? I am hard time finding it in the sample. Apologize if it is right there &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 22:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210369#M388348</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T22:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rangeavg bug with zero values?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210370#M388349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries, I didn't make myself clear. Expand the last dimension column to see it... I just ran a dummy example with an inline load..... so it won't calculate unless&amp;nbsp; at least one expression has data for Sep... in this particular neither Num nor Den has data for Sep.... I will have to generate dummy data for each record at its lowest level I guess &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; any idea how to easily solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="140209" alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140209_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 23:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210370#M388349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-10T23:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rangeavg bug with zero values?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210371#M388350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if one of these work for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeAvg(After(TOTAL Sum({&amp;lt;MONTH1=,MONTH=,MONTH_NAME=,YEAR=,QUARTER=,Q=, SUBJECT={'DELIVER'}&amp;gt;} LN_COUNT),0,3))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeAvg(After(TOTAL Sum({&amp;lt;MONTH1=,MONTH=,MONTH_NAME=,YEAR=,QUARTER=,Q=&amp;gt;} IF(SUBJECT='DELIVER', LN_COUNT,0)),0,3))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 01:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210371#M388350</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-11T01:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rangeavg bug with zero values?</title>
      <link>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210372#M388351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Sir. I didn't know this could be done without using aggr &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 19:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rangeavg-bug-with-zero-values/m-p/1210372#M388351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-11T19:29:33Z</dc:date>
    </item>
  </channel>
</rss>

