<?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: Difference between two timestamps in minutes? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24691#M779023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide the excel with some sample data...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2018 09:38:42 GMT</pubDate>
    <dc:creator>sudhirpkuwar</dc:creator>
    <dc:date>2018-04-12T09:38:42Z</dc:date>
    <item>
      <title>Difference between two timestamps in minutes?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24686#M779014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me get the duration between two timestamps in minutes. I tried the expression only({&amp;lt;[Duration Type]={'Sustained'},[Major Event Day]={'Non-MED'}&amp;gt;}+Interval([End Date]+[End Time]-[Start Date]+[Start Time],'mm')), but I still can't seem to get the right answer. This is what I am getting for using the above expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Please refer to Duration column below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/199360_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the correct one should be (Please refer to Outage Duration column below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/199370_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please please help me and apologies for missing on something obvious.&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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24686#M779014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two timestamps in minutes?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24687#M779015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;interval(date1-date2,'mm')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 08:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24687#M779015</guid>
      <dc:creator>sudhirpkuwar</dc:creator>
      <dc:date>2018-04-12T08:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two timestamps in minutes?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24688#M779016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how the Excel file looks like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/199371_3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, the date and time are on separate cells so I had to add them up first in my expression. I've used the same formula you suggested by I'm not getting the correct answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 08:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24688#M779016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-12T08:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two timestamps in minutes?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24689#M779017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought you want to use it in your straight table ( as shown above)&lt;/P&gt;&lt;P&gt;So I suggested you &lt;/P&gt;&lt;P&gt;can you show me the output for this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;interval(Min. Start Date - Max. End Date,'mm')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 08:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24689#M779017</guid>
      <dc:creator>sudhirpkuwar</dc:creator>
      <dc:date>2018-04-12T08:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two timestamps in minutes?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24690#M779020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Sir. What I meant to say was the excel file where the data used in the Straight Table had separate columns for the date and time so when I loaded it into qlikview, I had to combine them by using the + sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/199372_4.PNG" style="height: 486px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Since there's not Min and Max Start and End date respectively on the source excel file, the expression doesn't work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 08:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24690#M779020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-12T08:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two timestamps in minutes?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24691#M779023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide the excel with some sample data...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 09:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24691#M779023</guid>
      <dc:creator>sudhirpkuwar</dc:creator>
      <dc:date>2018-04-12T09:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two timestamps in minutes?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24692#M779024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are concatenating the date and time you would have to specify the data type of the result. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTERVAL(DATE([Start Date] + [Start Time]) - DATE([End Date] + [End Time]),'mm.ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 09:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24692#M779024</guid>
      <dc:creator>anagharao</dc:creator>
      <dc:date>2018-04-12T09:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two timestamps in minutes?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24693#M779025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sir. I tweaked it a little, to get the correct answer by using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;INTERVAL(DATE(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[End Date] + [End Time]&lt;/SPAN&gt;) - DATE(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Start Date] + [Start Time]&lt;/SPAN&gt;),'mm.ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 10:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24693#M779025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-12T10:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two timestamps in minutes?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24694#M779026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do mark responses from others as helpful or correct. This way they would be encouraged to answer more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 10:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-two-timestamps-in-minutes/m-p/24694#M779026</guid>
      <dc:creator>anagharao</dc:creator>
      <dc:date>2018-04-12T10:13:15Z</dc:date>
    </item>
  </channel>
</rss>

