<?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: timestamp time difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195160#M876343</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;thanks once again for coming to my rescue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the situation with no SLAs, i think this is handled by the fact that we are only reporting against tickets that have gone through the whole SLA life-cycle. All tickets will have a prefix of SLA1, SLA2 etc, so i will only load tickets that are resolved/closed which will contain all timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2016 13:29:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-28T13:29:08Z</dc:date>
    <item>
      <title>timestamp time difference</title>
      <link>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195156#M876339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, &lt;/P&gt;&lt;P&gt;i may have bitten of more than i can chew here, but i am after what appears to be a tricky scenario to be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my excel file, i have an extract of worklog information from incident tickets. as you will see, there are multiple rows for a single ticket reference (FLD_TICKET).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have manually edited some data in column R (FLD_DETAILS) to represent specific text that will be used when a ticket is updated. for example, Submit, SLA 1, SLA 2, SLA 3 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need to do, is calculate the time difference between each SLA reference for a ticket. So, the time difference between the word 'submit' and SLA 1. Then the time difference between SLA 1 and SLA 2. and so on. up to SLA 5 to ticket resolution (Ticket Resolved).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because i will be averaging the time difference for a given month, i dont need the results to be aggregated per ticket id, or day.&amp;nbsp; As long as, when i select the relevant month, it will give me the average time taken to fulfill SLA 1, SLA 2 etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the QVW, you will see i have set aside 5 text boxes to capture the relevant average times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with the idea of capturing one piece of info from one field, based on a criteria from another field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the field FLD_CREATEDATE to perform the time difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron&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/timestamp-time-difference/m-p/1195156#M876339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp time difference</title>
      <link>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195157#M876340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expected output you want to see for the 5 text boxes you have created?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 16:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195157#M876340</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-26T16:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp time difference</title>
      <link>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195158#M876341</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;so, in SLA1, i would expect to see the average time between Submit and SLA contained in the FLD_DETAILS column. The time stamp should be taken from the FLD_CREATEDATE column and is the time between the 2 entries for each ticket ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for SLA 2, its the time difference between SLA 1, and SLA 2.... and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately, i want to measure a monthly average for each SLA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also aware that the time stamp is in epoch format (UNIX) - which isnt a problem, as i can take the difference between the 2 time stamps and divide by 60 to give me the seconds, minutes etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 08:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195158#M876341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-27T08:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp time difference</title>
      <link>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195159#M876342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure where exactly are you subtracting the times, but assuming it is done at FLD_TICKETID level, this might work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLA 1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Interval(Avg(Aggr(Only({&amp;lt;FLD_DETAILS = {'SLA 1'}&amp;gt;} FLD_CREATEDATE) - Only({&amp;lt;FLD_DETAILS = {'Submit'}&amp;gt;} FLD_CREATEDATE), FLD_TICKETID))/60, 'D hh:mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLA 2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Interval(Avg(Aggr(Only({&amp;lt;FLD_DETAILS = {'SLA 2'}&amp;gt;} FLD_CREATEDATE) - Only({&amp;lt;FLD_DETAILS = {'SLA 1'}&amp;gt;} FLD_CREATEDATE), FLD_TICKETID))/60, 'D hh:mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SLA 3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Interval(Avg(Aggr(Only({&amp;lt;FLD_DETAILS = {'SLA 3'}&amp;gt;} FLD_CREATEDATE) - Only({&amp;lt;FLD_DETAILS = {'SLA 2'}&amp;gt;} FLD_CREATEDATE), FLD_TICKETID))/60, 'D hh:mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SLA 4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Interval(Avg(Aggr(Only({&amp;lt;FLD_DETAILS = {'SLA 4'}&amp;gt;} FLD_CREATEDATE) - Only({&amp;lt;FLD_DETAILS = {'SLA 3'}&amp;gt;} FLD_CREATEDATE), FLD_TICKETID))/60, 'D hh:mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SLA 5&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Interval(Avg(Aggr(Only({&amp;lt;FLD_DETAILS = {'SLA 5'}&amp;gt;} FLD_CREATEDATE) - Only({&amp;lt;FLD_DETAILS = {'SLA 4'}&amp;gt;} FLD_CREATEDATE), FLD_TICKETID))/60, 'D hh:mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;When one FLD_TICKETID is selected&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142288_Capture.PNG" style="height: 141px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;When nothing is selected&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/142289_Capture.PNG" style="height: 145px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now the issue is that there are certain FLD_TICKETID where we don't have all the SLA's for instance this one&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/142290_Capture.PNG" style="height: 155px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;How do you plan to handle such a situation?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;HTH&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 20:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195159#M876342</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T20:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp time difference</title>
      <link>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195160#M876343</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;thanks once again for coming to my rescue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the situation with no SLAs, i think this is handled by the fact that we are only reporting against tickets that have gone through the whole SLA life-cycle. All tickets will have a prefix of SLA1, SLA2 etc, so i will only load tickets that are resolved/closed which will contain all timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamp-time-difference/m-p/1195160#M876343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-28T13:29:08Z</dc:date>
    </item>
  </channel>
</rss>

