<?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: Average of Interval unexpected result in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Average-of-Interval-unexpected-result/m-p/2413319#M94852</link>
    <description>&lt;P&gt;In Qlik, times are represented as the fraction of a day. 0.5 = noon.&amp;nbsp; So&amp;nbsp;044131944 * 1440 minutes in a day = 63 minutes. Avg is returning the correct value. You just need to apply the Interval formatting function if you want to see it as minutes&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Interval(avg(MyInterval), 'mm')&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 04:49:26 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2024-02-01T04:49:26Z</dc:date>
    <item>
      <title>Average of Interval unexpected result</title>
      <link>https://community.qlik.com/t5/App-Development/Average-of-Interval-unexpected-result/m-p/2413298#M94851</link>
      <description>&lt;P&gt;In my script I have an interval.&amp;nbsp; &lt;STRONG&gt;Interval(DateTime2 - DateTime1,'mm') as MyInterval&lt;/STRONG&gt; to get the minutes between two date times.&lt;/P&gt;
&lt;P&gt;This returns the expected value.&lt;/P&gt;
&lt;P&gt;If I select just one record, the interval is 63&lt;/P&gt;
&lt;P&gt;Sum(MyInterval) = 63 Count(MyInterval)=1&amp;nbsp; Median(MyInterval) = 63&amp;nbsp; which is correct.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;However avg(MyInterval) = 0.044131944&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Why is this output for the average function and how do I have it return the average of my value.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 23:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-of-Interval-unexpected-result/m-p/2413298#M94851</guid>
      <dc:creator>MattG</dc:creator>
      <dc:date>2024-01-31T23:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Average of Interval unexpected result</title>
      <link>https://community.qlik.com/t5/App-Development/Average-of-Interval-unexpected-result/m-p/2413319#M94852</link>
      <description>&lt;P&gt;In Qlik, times are represented as the fraction of a day. 0.5 = noon.&amp;nbsp; So&amp;nbsp;044131944 * 1440 minutes in a day = 63 minutes. Avg is returning the correct value. You just need to apply the Interval formatting function if you want to see it as minutes&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Interval(avg(MyInterval), 'mm')&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 04:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Average-of-Interval-unexpected-result/m-p/2413319#M94852</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-02-01T04:49:26Z</dc:date>
    </item>
  </channel>
</rss>

