<?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 Adding a Decimal to a Duration in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Adding-a-Decimal-to-a-Duration/m-p/55021#M3660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add two time values together, but they are in different formats. The first is in h:mm:ss format, and the second is a decimal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; border-image: none; width: 177px; height: 68px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Working Hours&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Overtime&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1:00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.08&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2:23:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;2.20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, I need to add 1:00:00 (1 hour) to 1.08 hours. My desired output is 2:04:80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried changing the format to duration and the pattern to h:mm:ss, but Qlik is recognizing the 1.08 as 1.08 days (25:55:12), not 1.08 hours. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate the help. Let me know if you need more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Feb 2018 22:43:03 GMT</pubDate>
    <dc:creator>acbishop2</dc:creator>
    <dc:date>2018-02-05T22:43:03Z</dc:date>
    <item>
      <title>Adding a Decimal to a Duration</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-a-Decimal-to-a-Duration/m-p/55021#M3660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add two time values together, but they are in different formats. The first is in h:mm:ss format, and the second is a decimal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; border-image: none; width: 177px; height: 68px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Working Hours&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Overtime&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1:00:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.08&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2:23:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;2.20&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, I need to add 1:00:00 (1 hour) to 1.08 hours. My desired output is 2:04:80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried changing the format to duration and the pattern to h:mm:ss, but Qlik is recognizing the 1.08 as 1.08 days (25:55:12), not 1.08 hours. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate the help. Let me know if you need more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 22:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-a-Decimal-to-a-Duration/m-p/55021#M3660</guid>
      <dc:creator>acbishop2</dc:creator>
      <dc:date>2018-02-05T22:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Decimal to a Duration</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-a-Decimal-to-a-Duration/m-p/55022#M3661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET TimeFormat = 'h:mm:ss';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval(Rangesum( [Working Hours], OvertimeQV) ) as SummedTimes;&lt;/P&gt;&lt;P&gt;LOAD [Working Hours],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Overtime, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Overtime / 24 as OvertimeQV&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 23:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-a-Decimal-to-a-Duration/m-p/55022#M3661</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-02-05T23:58:37Z</dc:date>
    </item>
  </channel>
</rss>

