<?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: Re: Time Calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637912#M678429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check and let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 10:40:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-19T10:40:56Z</dc:date>
    <item>
      <title>Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637900#M678417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find out how I can multiply a number of hours by expected personnel, to get total hours booked to event.&amp;nbsp; the calculation to get the Hours are&lt;/P&gt;&lt;P&gt;if(interval(EndTime - StartTime,'hh:mm')&amp;lt;0, interval(Date(EndTime,'ddmmyy')+1 - StartTime,'hh:mm'),interval(EndTime - StartTime,'hh:mm') )as [Total_Hours] and the personnel Expected is a sum of numbers.&amp;nbsp; so the total booked hours should be 21:00, but I cant workout how I can calculate a time calculation by a number calculation. am i missing something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59090" alt="Capture.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/59090_Capture.JPG.jpg" style="width: 620px; height: 55px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 09:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637900#M678417</guid>
      <dc:creator />
      <dc:date>2014-05-19T09:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637901#M678418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 09:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637901#M678418</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-19T09:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637902#M678419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, you have too many formatting functions in your expression. Remove them: They do not change the calculations; they just prevent you from seeing the structure of your expression. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Instead of &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&amp;nbsp; interval(EndTime - StartTime,'hh:mm')&amp;lt;0,&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(Date(EndTime,'ddmmyy')+1 - StartTime,'hh:mm'),&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(EndTime - StartTime,'hh:mm')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) as [Total_Hours]&lt;/P&gt;&lt;P&gt;you should write&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&amp;nbsp; EndTime - StartTime &amp;lt;0,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndTime +1 - StartTime,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndTime - StartTime ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'hh:mm' ) as [Total_Hours]&lt;/P&gt;&lt;P&gt;If you want to format it, you should put the formatting function as the outermost function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, if EndTime and StartTime are correctly interpreted, they have numeric values where a difference of one day is 1, and a difference of one hour is 1/24. This means that you can get the number of hours through&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (EndTime - StartTime) * 24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 09:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637902#M678419</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-19T09:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637903#M678420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637903#M678420</guid>
      <dc:creator />
      <dc:date>2014-05-19T10:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637904#M678421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;user id, password?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637904#M678421</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-19T10:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637905#M678422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the credentials to login to your application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637905#M678422</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2014-05-19T10:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637906#M678423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying open your sample document but it was asking the user ID&lt;/P&gt;&lt;P&gt;try with below&lt;/P&gt;&lt;P&gt;Expected hours = Personel expected*(Totalhours*24)&lt;/P&gt;&lt;P&gt;In total hours you can use your actual expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637906#M678423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-19T10:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637907#M678424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sorry about that i forgot it had section access. i have remove this now and re-uploaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637907#M678424</guid>
      <dc:creator />
      <dc:date>2014-05-19T10:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637908#M678425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt;"&gt;I tried and it worked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DDT_Hours&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*24&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Personnel Expected] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637908#M678425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-19T10:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637909#M678426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jebamalai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for taking a look,i need the output to be formated to hh:mm.&amp;nbsp; can you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637909#M678426</guid>
      <dc:creator />
      <dc:date>2014-05-19T10:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637910#M678427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change your expression to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;(DDT_Hours&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Personnel Expected] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&amp;nbsp; and change the format to Time-&amp;gt;hh:mm from the number tab&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;it works&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637910#M678427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-19T10:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637911#M678428</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 already changed this and it just shows 00:00 for all values now! are you able to amend the example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks Jebamalai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637911#M678428</guid>
      <dc:creator />
      <dc:date>2014-05-19T10:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637912#M678429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check and let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637912#M678429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-19T10:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637913#M678430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Jeba&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third calculation isnt correct it should show 50:00, it shows 02:00 in the example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637913#M678430</guid>
      <dc:creator />
      <dc:date>2014-05-19T10:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637914#M678431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pfa the updated one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 11:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637914#M678431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-19T11:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637915#M678432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeba&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's perfect thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 11:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Calculations/m-p/637915#M678432</guid>
      <dc:creator />
      <dc:date>2014-05-19T11:08:03Z</dc:date>
    </item>
  </channel>
</rss>

