<?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: Find Average hh:mm from Decimal in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439734#M812625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great ! worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally I need to find the average hh:mm based on this decimal field.&amp;nbsp; Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2017 11:02:07 GMT</pubDate>
    <dc:creator>prees959</dc:creator>
    <dc:date>2017-09-19T11:02:07Z</dc:date>
    <item>
      <title>Find Average hh:mm from Decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439731#M812622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a decimal hh:mm field and would like to calculate the actual average hours and minutes from this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439731#M812622</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find Average hh:mm from Decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439732#M812623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By decimal, I assume you mean decimal hours (ie 2.5 indicating 2h and 30 minutes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display as hours and minutes, divide the value by 24 and format as an interval or as a time &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(myField / 24, 'hh:mm')&lt;/P&gt;&lt;P&gt;=Time(myField / 24, 'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 10:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439732#M812623</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-09-19T10:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find Average hh:mm from Decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439733#M812624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Making the same assumption, to get the hour value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Floor(myField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The minute value&lt;/P&gt;&lt;P&gt;=Round(Frac(myField) * 60)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 10:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439733#M812624</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-09-19T10:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find Average hh:mm from Decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439734#M812625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great ! worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally I need to find the average hh:mm based on this decimal field.&amp;nbsp; Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439734#M812625</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2017-09-19T11:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find Average hh:mm from Decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439735#M812626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hh:mm isn't a decimal. If that's your format, it's probably a string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you meant Hours.Minutes, e.g. 7.30 is 7 hours and 30 minutes - you can convert this to be measured in hours:&lt;/P&gt;&lt;P&gt;floor(Field) + (frac(Field)*5/3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which will result in a value of 7.50 (7 and a half hours).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then average this field, and if you want to display it in the original format, you can convert it back using&lt;/P&gt;&lt;P&gt;Floor(Field) + (frac(Field)*3/5)&lt;/P&gt;&lt;P&gt;Which in our case would convert back to 7.30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your value is a string, convert it to a number first and then work based on that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439735#M812626</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-09-19T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find Average hh:mm from Decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439736#M812627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used your formula in this way&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval(avg([Updated Time] / 24), 'hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439736#M812627</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2017-09-19T11:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find Average hh:mm from Decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439737#M812628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I need to find the average hh:mm based on this decimal field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script or front end? Average of the hours only or hours and minutes? Simplest scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Interval(Avg(myField) / 24, 'hh:mm')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Time(Avg(myField) / 24, 'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Average-hh-mm-from-Decimal/m-p/1439737#M812628</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-09-19T11:06:00Z</dc:date>
    </item>
  </channel>
</rss>

