<?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 Duration between two Time fields not dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125828#M8758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear team, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table where I have arrival time in one column and left time in another field, i need to know the duration between those two times&lt;/P&gt;&lt;P&gt;I am using qlik sense&lt;/P&gt;&lt;P&gt;the outcome should be in hours but decimal example 2.5 is two hrs and 30 min&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2018 14:03:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-25T14:03:30Z</dc:date>
    <item>
      <title>Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125828#M8758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear team, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table where I have arrival time in one column and left time in another field, i need to know the duration between those two times&lt;/P&gt;&lt;P&gt;I am using qlik sense&lt;/P&gt;&lt;P&gt;the outcome should be in hours but decimal example 2.5 is two hrs and 30 min&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125828#M8758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T14:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125829#M8759</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;You can try a Timestamp([Left Time] - [Arrival Time]) and use the format you want.&lt;/P&gt;&lt;P&gt;You can also chose to display as a duration in the measure parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125829#M8759</guid>
      <dc:creator>benoitgochel</dc:creator>
      <dc:date>2018-07-25T14:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125830#M8760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your prompt reply, but it didn't work.&lt;/P&gt;&lt;P&gt;it is just time filed, could be not recognized as such in qlik?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example currently have them as 18:40 in an excel column &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125830#M8760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T14:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125831#M8761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you try something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;round(([Left Time]-[Arrival Time])*1440,0.02)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125831#M8761</guid>
      <dc:creator>benoitgochel</dc:creator>
      <dc:date>2018-07-25T14:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125832#M8762</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;you will need to use Interval() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look here to understand how it works: &lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/FormattingFunctions/Interval.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/FormattingFunctions/Interval.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/FormattingFunctions/Interval.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval(left_time-arrival_time,'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125832#M8762</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-25T14:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125833#M8763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no also not working. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125833#M8763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T14:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125834#M8764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;but didn't work i'm using this:&lt;/P&gt;&lt;P&gt;=Interval([Left Time]-[Arrival Time],'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125834#M8764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T14:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125835#M8765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then you will need to evaluate your timestamp fields correctly using Timestamp#()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(Timestamp#(left_time,'&lt;STRONG&gt;your format&lt;/STRONG&gt;')-Timestamp#(arrival_time,'&lt;STRONG&gt;your_format&lt;/STRONG&gt;'),'hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: if the format of your time field is this: DD/MM/YYYY hh:mm:ss then just replace it in the greyed part above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125835#M8765</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-25T14:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125836#M8766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at least i got a result but it was worng, what i am missing here is what i was using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Interval(Timestamp#([Left Time],'hh:mm')-Timestamp#([Arrival Time],'hh:mm'),'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125836#M8766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125837#M8767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey i did it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this one works: so i was missing the timestamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Timestamp#([Left Time],'hh:mm')-Timestamp#([Arrival Time],'hh:mm'))*1440&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125837#M8767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T14:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125838#M8768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good, I just recommend using Interval() for this specific need, because it is designed exactly for this type of calculations..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't forget to close the thread &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 15:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125838#M8768</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-25T15:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125839#M8769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;didn't work for intervals, can you using what i shared, convert it by using intervals so i can check it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 07:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125839#M8769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T07:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125840#M8770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, but you will need to share a sample app for that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I should take YOUR expression with YOUR data to convert it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 07:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125840#M8770</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-26T07:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125841#M8771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you here is the sample data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have faced an issue, that the left time sometimes is in the next day after 12:00am so the time is negative.&lt;/P&gt;&lt;P&gt;in the sample there is the date as well, so can you create something that will calculate the duration using the date and time, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;really appreciate it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 08:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125841#M8771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T08:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125842#M8772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here you are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working as expected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 10:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125842#M8772</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-26T10:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125843#M8773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is an empty file, couldn't load it, can you paste the code here that you have used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125843#M8773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T11:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125844#M8774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try it again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no code, only this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Interval(Timestamp#([Left Time],'hh:mm')-Timestamp#([Arrival Time],'hh:mm'),'hh:mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put your dimensions and use the expression above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125844#M8774</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-26T11:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125845#M8775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is giving decimal and not working multiplying by 1440 &lt;/P&gt;&lt;P&gt;and you didn't react towards the day. as subtracting two times might give negative if in different days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 12:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125845#M8775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T12:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Duration between two Time fields not dates</title>
      <link>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125846#M8776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote something related to the day and I delete it, if you want to include the day, you can do it by concatenating your Day field with your time field inside the Timestamp#() function, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Interval(Timestamp#([Left Date]&amp;amp;[Left Time],'DD-MM-YYYY hh:mm')-Timestamp#([Arrival Date]&amp;amp;[Arrival Time],'DD-MM-YYYY hh:mm'),'hh:mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if this don't solve your problem, take the solution that is working for you&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 12:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Duration-between-two-Time-fields-not-dates/m-p/125846#M8776</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-07-26T12:23:27Z</dc:date>
    </item>
  </channel>
</rss>

