<?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 Re: Assist with Average Calculation - exclude some values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assist-with-Average-Calculation-exclude-some-values/m-p/1706401#M725060</link>
    <description>&lt;P&gt;Try with this one:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;avg({$&amp;lt;PERIOD={$(vMaxMonth)},REQ_DATE=, TYPE_GRAPH = {'HOURLY'}, &lt;STRONG&gt;REQ_HOUR = {"*"}&lt;/STRONG&gt; &amp;gt;} total &amp;lt;WKDAY,REQ_HOUR&amp;gt; HOUR_VOLUME)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 08:21:41 GMT</pubDate>
    <dc:creator>agigliotti</dc:creator>
    <dc:date>2020-05-29T08:21:41Z</dc:date>
    <item>
      <title>Assist with Average Calculation - exclude some values</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-Average-Calculation-exclude-some-values/m-p/1706395#M725059</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;Hoping this will be quick and simple, LOL!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calculating an average in a chart -&amp;nbsp; to Average out an Hour_Volume over Weekday(WKDAY) and REQ_HOUR.&lt;/P&gt;&lt;P&gt;REQ_HOUR, for a normal day will contain values from 00 to 23 (count - 24 hours in the day)&lt;/P&gt;&lt;P&gt;Sometimes, though, my REQ_HOUR returns a null value (problem in the underlying data) - so then I have hard-coded REQ_HOUR = 'NULL'.&lt;/P&gt;&lt;P&gt;The problem comes in, in the Average Calc - when there are 24 REQ_HOURS - the Average statement works fine.&lt;/P&gt;&lt;P&gt;However, when there are 25 hours (the 'NULL' included) the Average works incorrectly (that is to be expected)&lt;/P&gt;&lt;P&gt;Now, in the original statement I have at the BOTTOM of this post..how do I EXCLUDE where REQ_HOUR = 'NULL' in the TOTAL statement? so that the calculation is done correctly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;PERIOD={$(vMaxMonth)},REQ_DATE=, TYPE_GRAPH = {'HOURLY'}, REQ_HOUR -= {'NULL'}&amp;gt;}total &amp;lt;WKDAY,REQ_HOUR&amp;gt; HOUR_VOLUME)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-Average-Calculation-exclude-some-values/m-p/1706395#M725059</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2024-11-16T00:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with Average Calculation - exclude some values</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-Average-Calculation-exclude-some-values/m-p/1706401#M725060</link>
      <description>&lt;P&gt;Try with this one:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;avg({$&amp;lt;PERIOD={$(vMaxMonth)},REQ_DATE=, TYPE_GRAPH = {'HOURLY'}, &lt;STRONG&gt;REQ_HOUR = {"*"}&lt;/STRONG&gt; &amp;gt;} total &amp;lt;WKDAY,REQ_HOUR&amp;gt; HOUR_VOLUME)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 08:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-Average-Calculation-exclude-some-values/m-p/1706401#M725060</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2020-05-29T08:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with Average Calculation - exclude some values</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-Average-Calculation-exclude-some-values/m-p/1706410#M725061</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I will definitely try. What does the * mean in this context?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
      <pubDate>Fri, 29 May 2020 08:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-Average-Calculation-exclude-some-values/m-p/1706410#M725061</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2020-05-29T08:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with Average Calculation - exclude some values</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-Average-Calculation-exclude-some-values/m-p/1706668#M725062</link>
      <description>&lt;P&gt;the * means all field values except null.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 19:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-Average-Calculation-exclude-some-values/m-p/1706668#M725062</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2020-05-29T19:29:20Z</dc:date>
    </item>
  </channel>
</rss>

