<?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 Time to number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194912#M879505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So interval was used to interpret your time and then I am using Floor is used to Floor your timestamp to the nearest minute. (1/1440 where 1440 is made of 24*60 where 24 is the number of hours and 60 is number of minutes) and finally multiplying with 24 to convert them into hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Oct 2016 12:55:00 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-16T12:55:00Z</dc:date>
    <item>
      <title>Convert Time to number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194907#M879500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i convert hours to number(integer) like:&lt;/P&gt;&lt;P&gt;i have this total working hours for my team in one day 29:14:06 H and i need to get the cost for them the normal calculation that i do it in excel is:&lt;/P&gt;&lt;P&gt;total working hours ((29*60)+(14'mm'))/60 so i will get this number &lt;SPAN style="color: #ff0000;"&gt;29.233&lt;/SPAN&gt; after that i do &lt;SPAN style="color: #ff0000;"&gt;29.233 * 24.5' &lt;/SPAN&gt;Price per hour' &lt;SPAN style="color: #ff0000;"&gt;/ 19&lt;/SPAN&gt; '#of Orders'&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;29.233 * 24.5 / 19 = 37.69 .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so to summarize it : i have to column 1. working hours. 2. # of Orders. and the price is fix 24.5 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try to use Interval function and calculate it but does not give me the correct number.&lt;/P&gt;&lt;P&gt;any help pleas how con do this.&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/Convert-Time-to-number/m-p/1194907#M879500</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Time to number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194908#M879501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;(SubField&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(YouTime,':',1)+SubField&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(YourTime,':',2)/60)*Price/NrOrder&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 09:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194908#M879501</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-10-13T09:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Time to number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194909#M879502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might also work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Floor(Interval#(SubField('29:14:06 H', ' ', 1), 'h:mm:ss'), 1/1440)*24&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;24.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[# of Order]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 09:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194909#M879502</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T09:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Time to number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194910#M879503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check out the attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data_1:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Work_Hrs, Price, #Orders&lt;/P&gt;&lt;P&gt; 29:14:09, 24.5, 19&lt;/P&gt;&lt;P&gt; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data_2:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Sum(SubField(Work_Hrs,':',1)* 60 + SubField(Work_Hrs,':',2))/60,'#,##.00') as Decimal_Hours&lt;/P&gt;&lt;P&gt;Resident Data_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Decimal_Hours * Price) / #Orders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194910#M879503</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2016-10-13T10:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Time to number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194911#M879504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you explain the formula please.&lt;/P&gt;&lt;P&gt;why we use this and what is the 1/1440 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2016 12:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194911#M879504</guid>
      <dc:creator>jood_ahmad</dc:creator>
      <dc:date>2016-10-16T12:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Time to number</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194912#M879505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So interval was used to interpret your time and then I am using Floor is used to Floor your timestamp to the nearest minute. (1/1440 where 1440 is made of 24*60 where 24 is the number of hours and 60 is number of minutes) and finally multiplying with 24 to convert them into hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2016 12:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Time-to-number/m-p/1194912#M879505</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-16T12:55:00Z</dc:date>
    </item>
  </channel>
</rss>

