<?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: Maximum value from moving average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Maximum-value-from-moving-average/m-p/1355786#M460044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you plz give application with data to understand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jul 2017 07:45:31 GMT</pubDate>
    <dc:creator>mangalsk</dc:creator>
    <dc:date>2017-07-24T07:45:31Z</dc:date>
    <item>
      <title>Maximum value from moving average</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-from-moving-average/m-p/1355785#M460043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm stuck with this issue for a couple of days now and I think I need some help.&lt;/P&gt;&lt;P&gt;I have a chart which shows, for each minute, how many items we detect (total items per minute.xls) within a selected range of time. My formula for this one is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(DateTimeMinMaster &amp;gt;= vi_HourMinuteMin and &lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster &lt;/SPAN&gt;&amp;lt;= vi_HourMinuteMax,count({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster &lt;/SPAN&gt;= {"&amp;gt;=$(=&lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMin&lt;/SPAN&gt;)&amp;lt;=$(=&lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMax&lt;/SPAN&gt;)"},Station={'7000'}&amp;gt;}&amp;nbsp; distinct Code))&lt;/P&gt;&lt;P&gt;And my dimension is &lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other chart I have the flow of items per hour on a moving average of 15 minutes (item flow per hour.xls), which formula is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster &lt;/SPAN&gt;&amp;gt;= &lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMin &lt;/SPAN&gt;and &lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster &lt;/SPAN&gt;&amp;lt;= &lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMax&lt;/SPAN&gt;,RangeAvg(Above(count({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster &lt;/SPAN&gt;= {"&amp;gt;=$(=&lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMin &lt;/SPAN&gt;)&amp;lt;=$(=&lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMax&lt;/SPAN&gt;)"},Station={'7000'}&amp;gt;}&amp;nbsp; distinct Code)*60,0,15)))&lt;/P&gt;&lt;P&gt;And the same dimension &lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If we look at the excel &lt;SPAN style="font-size: 13.3333px;"&gt;item flow per hour.xls file we can see that our maximum value is 40 at 16:46, but if I try to show in a text box this max value with the formula:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=Max(&lt;/P&gt;&lt;P&gt;Aggr(if(&lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster &lt;/SPAN&gt;&amp;gt;= &lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMin &lt;/SPAN&gt;and &lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster &lt;/SPAN&gt;&amp;lt;= &lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMax&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;RangeAvg(Above(count({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster &lt;/SPAN&gt;= {"&amp;gt;=$(=&lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMin &lt;/SPAN&gt;- 0.0104166)&amp;lt;=$(=&lt;SPAN style="font-size: 13.3333px;"&gt;vi_HourMinuteMax&lt;/SPAN&gt;)"},Station={'7000'}&amp;gt;}&amp;nbsp; distinct Code)*60,0,15)))&lt;/P&gt;&lt;P&gt;,&lt;SPAN style="font-size: 13.3333px;"&gt;DateTimeMinMaster &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;what I get is 28.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;My guess is that when I use the Aggr it excludes somehow the zero/null values from the calculation of the moving average and results in a complete different set of values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;How can I get the maximum value I see in the chart isolated in a text box?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Nestor.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 11:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-from-moving-average/m-p/1355785#M460043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-10T11:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum value from moving average</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-value-from-moving-average/m-p/1355786#M460044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you plz give application with data to understand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 07:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-value-from-moving-average/m-p/1355786#M460044</guid>
      <dc:creator>mangalsk</dc:creator>
      <dc:date>2017-07-24T07:45:31Z</dc:date>
    </item>
  </channel>
</rss>

