<?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: Convert string into a decimal time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-string-into-a-decimal-time/m-p/667058#M668855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be done with regular string functions.&amp;nbsp; Not sure what to do with the last row... what do you want ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68325_Capture.PNG.png" /&gt;&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; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Hours + Minutes/60 as HourInDecimals;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; A as Time,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(left(A, Index(A,'Hrs')-2)) as Hours,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(mid(A, Index(A,'Hrs') + 5 , Index(A,'Min')- (Index(A,'Hrs')+5)))&amp;nbsp; as Minutes&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, no labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2014 15:46:18 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-10-06T15:46:18Z</dc:date>
    <item>
      <title>Convert string into a decimal time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-into-a-decimal-time/m-p/667057#M668854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a &lt;STRONG&gt;string&lt;/STRONG&gt; field filled with values like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;72 Hrs&amp;nbsp; 0 Min&lt;/P&gt;&lt;P&gt;90 Hrs&amp;nbsp; 53 Min&lt;/P&gt;&lt;P&gt;99 Hrs&amp;nbsp; 0 Min&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px; line-height: 1.5em;"&gt; Hrs&amp;nbsp;&amp;nbsp; Min&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;225 Hrs&amp;nbsp; 0 Min&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;0 Hrs&amp;nbsp; 58 Min&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;1520 Hrs&amp;nbsp; 53 Min&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;I need to convert it to &lt;STRONG&gt;decimal format&lt;/STRONG&gt; to make furter calculations&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;Somebody know how to do it? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;Thanx very much! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;Pablo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 15:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-into-a-decimal-time/m-p/667057#M668854</guid>
      <dc:creator />
      <dc:date>2014-10-06T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string into a decimal time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-into-a-decimal-time/m-p/667058#M668855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be done with regular string functions.&amp;nbsp; Not sure what to do with the last row... what do you want ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68325_Capture.PNG.png" /&gt;&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; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Hours + Minutes/60 as HourInDecimals;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; A as Time,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(left(A, Index(A,'Hrs')-2)) as Hours,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(mid(A, Index(A,'Hrs') + 5 , Index(A,'Min')- (Index(A,'Hrs')+5)))&amp;nbsp; as Minutes&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, no labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 15:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-into-a-decimal-time/m-p/667058#M668855</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-06T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string into a decimal time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-string-into-a-decimal-time/m-p/667059#M668856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx very much Jonathan! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 15:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-string-into-a-decimal-time/m-p/667059#M668856</guid>
      <dc:creator />
      <dc:date>2014-10-06T15:56:57Z</dc:date>
    </item>
  </channel>
</rss>

