<?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: Interval between different calls in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1964123#M79468</link>
    <description>&lt;P&gt;Hey, guys!&lt;BR /&gt;Thanks for your helping.&lt;/P&gt;
&lt;P&gt;I tried the solution proposed by &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/87767"&gt;@vidyutverma&lt;/a&gt;&amp;nbsp;, but I can't develop what you suggested... Could you post it here, please?&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6188"&gt;@sidhiq91&lt;/a&gt;&amp;nbsp;&amp;nbsp;your suggestion is not wrong, except that I need the time (or interval) between the end and the start of each protocol, considering the operator and his local.&lt;/P&gt;
&lt;P&gt;To be clearer: I have many operators working to serve people. Each person has a protocol and the operator works with it. For example: I'm an operator and start the service of a protocol at 08:30 and finish at 08:35. My next appointment started at 08:50, so between 08:35 and 08:50 I wasn't working and this is the information I'm looking for. How long are operators idle??&lt;/P&gt;
&lt;P&gt;Using the&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6188"&gt;@sidhiq91&lt;/a&gt;&amp;nbsp; table, between protocol 2339169 and 2353897 it would be:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20220803_QlikCommunity.png" style="width: 600px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85849i001AFC2D33594062/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220803_QlikCommunity.png" alt="20220803_QlikCommunity.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Green Square: start;&lt;BR /&gt;Red Square: end.&lt;/P&gt;
&lt;P&gt;I don't need the protocol, just &lt;STRONG&gt;ID_Local&lt;/STRONG&gt;, &lt;STRONG&gt;ID_Operator&lt;/STRONG&gt;, &lt;STRONG&gt;Start Date&lt;/STRONG&gt; and &lt;STRONG&gt;End Date&lt;/STRONG&gt; if possible.&lt;/P&gt;
&lt;P&gt;Thanks again, folks.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 13:42:38 GMT</pubDate>
    <dc:creator>rotter</dc:creator>
    <dc:date>2022-08-03T13:42:38Z</dc:date>
    <item>
      <title>Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1961883#M79305</link>
      <description>&lt;P&gt;Hi everyone! Can you help me, please?&lt;/P&gt;
&lt;P&gt;I have a log table with calls.&lt;/P&gt;
&lt;P&gt;Each call has:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;An operator (ID Operator);&lt;/LI&gt;
&lt;LI&gt;A local (ID Local);&lt;/LI&gt;
&lt;LI&gt;A protocol (ID Protocol).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Call starts at status 2 and ends on 3 (Status).&lt;BR /&gt;All calls follow the order of the date (Date).&lt;/P&gt;
&lt;P&gt;I need to create a table with two columns showing the interval between a call and other.&lt;BR /&gt;For example (considering only one operator):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20220728_TemposOcio.png" style="width: 659px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85403i7BA2738D7238EB36/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220728_TemposOcio.png" alt="20220728_TemposOcio.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the red square has a interval. The operator 285 ends the protocol 2339169 and then starts the call of protocol 2353897.&lt;/P&gt;
&lt;P&gt;I need something like that for each interval, with operator and local, without the interval between one day and other.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20220728_TemposOcio2.png" style="width: 576px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85404i962207D2C42A83C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220728_TemposOcio2.png" alt="20220728_TemposOcio2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attached the qvd.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 15:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1961883#M79305</guid>
      <dc:creator>rotter</dc:creator>
      <dc:date>2022-07-28T15:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1961976#M79308</link>
      <description>So If I understand you correctly, Call (protocol ID 2353897) starts at 8:59:19 and ends at 9:12:19, right?&lt;BR /&gt;So every protocolID has two rows, one with 2 and another with 3 as Status (some may have these missing in case you have data quality issues). To solve this problem, try breaking it into multiple steps: &lt;BR /&gt;Step 1 : Create a table with all the rows ordered by Date/Time, ProtocolID and Status descending.&lt;BR /&gt;Step 2: Use Previous() to access the Date/Time of previous record and based on that create a duration field [ date-previous(date) as Duration ], also create date end field.&lt;BR /&gt;Step 3: Just use the records with Status 2 (as Starus 3 records won`t have the duration field)  to create the desired table.</description>
      <pubDate>Thu, 28 Jul 2022 18:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1961976#M79308</guid>
      <dc:creator>vidyutverma</dc:creator>
      <dc:date>2022-07-28T18:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1963324#M79409</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/87767"&gt;@vidyutverma&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;I'll try your suggestion and then come back to let you know if it worked.&lt;BR /&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 11:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1963324#M79409</guid>
      <dc:creator>rotter</dc:creator>
      <dc:date>2022-08-02T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1963379#M79423</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/186180"&gt;@rotter&lt;/a&gt;&amp;nbsp; You can also try the below mentioned method. Please let me know if it has worked.&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp:&lt;BR /&gt;LOAD&lt;BR /&gt;ID,&lt;BR /&gt;"Date",&lt;BR /&gt;Status,&lt;BR /&gt;ID_Local,&lt;BR /&gt;ID_Operator,&lt;BR /&gt;ID_Protocol&lt;BR /&gt;FROM [lib://Qlik Community Practice/tb_operator.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp1:&lt;BR /&gt;Load Date as [Start Date],&lt;BR /&gt;ID_Local,&lt;BR /&gt;ID_Operator,&lt;BR /&gt;ID_Protocol,&lt;BR /&gt;ID_Local&amp;amp;'-'&amp;amp;ID_Operator&amp;amp;'-'&amp;amp;ID_Protocol as Key&lt;BR /&gt;Resident Temp&lt;BR /&gt;where match(Status,'2') and match(ID_Operator,'285');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;inner join (Temp1)&lt;BR /&gt;Temp2:&lt;BR /&gt;Load Date as [End Date],&lt;BR /&gt;ID_Local as ID_Local1,&lt;BR /&gt;ID_Operator as ID_Operator1,&lt;BR /&gt;ID_Protocol as ID_Protocol1,&lt;BR /&gt;ID_Local&amp;amp;'-'&amp;amp;ID_Operator&amp;amp;'-'&amp;amp;ID_Protocol as Key&lt;BR /&gt;Resident Temp&lt;BR /&gt;where match(Status,'3') and match(ID_Operator,'285');&lt;/P&gt;
&lt;P&gt;Drop field ID_Operator1,ID_Local1,ID_Protocol1,Key from Temp1;&lt;/P&gt;
&lt;P&gt;Drop table Temp;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;I Tried for ID_Operator 285, you can definitely try without that and let me know if it has worked or not.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sidhiq91_0-1659443820237.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85664iD70428AAF7237F02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sidhiq91_0-1659443820237.png" alt="sidhiq91_0-1659443820237.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 12:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1963379#M79423</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-08-02T12:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1963480#M79427</link>
      <description>&lt;P&gt;Yes, Your suggestion would work assuming you do not have protocol ID repeating in data. I tend to order the records by time to ensure that&amp;nbsp; neighbouring records are picked even when ProtocolID or any other such field do repeat.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 15:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1963480#M79427</guid>
      <dc:creator>vidyutverma</dc:creator>
      <dc:date>2022-08-02T15:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1963503#M79428</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/87767"&gt;@vidyutverma&lt;/a&gt;&amp;nbsp; Yup that is correct since you are close to data you need to let me know if my solution worked or should we look into some alternative?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 15:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1963503#M79428</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-08-02T15:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1964123#M79468</link>
      <description>&lt;P&gt;Hey, guys!&lt;BR /&gt;Thanks for your helping.&lt;/P&gt;
&lt;P&gt;I tried the solution proposed by &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/87767"&gt;@vidyutverma&lt;/a&gt;&amp;nbsp;, but I can't develop what you suggested... Could you post it here, please?&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6188"&gt;@sidhiq91&lt;/a&gt;&amp;nbsp;&amp;nbsp;your suggestion is not wrong, except that I need the time (or interval) between the end and the start of each protocol, considering the operator and his local.&lt;/P&gt;
&lt;P&gt;To be clearer: I have many operators working to serve people. Each person has a protocol and the operator works with it. For example: I'm an operator and start the service of a protocol at 08:30 and finish at 08:35. My next appointment started at 08:50, so between 08:35 and 08:50 I wasn't working and this is the information I'm looking for. How long are operators idle??&lt;/P&gt;
&lt;P&gt;Using the&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6188"&gt;@sidhiq91&lt;/a&gt;&amp;nbsp; table, between protocol 2339169 and 2353897 it would be:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="20220803_QlikCommunity.png" style="width: 600px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85849i001AFC2D33594062/image-size/large?v=v2&amp;amp;px=999" role="button" title="20220803_QlikCommunity.png" alt="20220803_QlikCommunity.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Green Square: start;&lt;BR /&gt;Red Square: end.&lt;/P&gt;
&lt;P&gt;I don't need the protocol, just &lt;STRONG&gt;ID_Local&lt;/STRONG&gt;, &lt;STRONG&gt;ID_Operator&lt;/STRONG&gt;, &lt;STRONG&gt;Start Date&lt;/STRONG&gt; and &lt;STRONG&gt;End Date&lt;/STRONG&gt; if possible.&lt;/P&gt;
&lt;P&gt;Thanks again, folks.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 13:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1964123#M79468</guid>
      <dc:creator>rotter</dc:creator>
      <dc:date>2022-08-03T13:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1965855#M79603</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/186180"&gt;@rotter&lt;/a&gt;&amp;nbsp; I understand that you are trying to find the duration between two calls by the same operator. The approach I suggested should work, with a couple of minor changes. When you say `I can`t develop what you suggested`, I assume you are not comfortable with some of these concepts : Using Interrecord Functions/ Difference between Peek&amp;amp;Previous. Try reading about these, I am sure you should be able to solve this. The steps that I have mentioned are detailed enough.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Vidyut&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 11:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1965855#M79603</guid>
      <dc:creator>vidyutverma</dc:creator>
      <dc:date>2022-08-08T11:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1965861#M79604</link>
      <description>&lt;P&gt;A small subproblem for you to solve:&lt;/P&gt;
&lt;P&gt;If you have two rows of data, first row with Status ID 3 , and second row with Status ID 2 for the same operator, using the Date (containing date/time of the record), How would you compare and create a duration field ?(hint: using an if statement, and previous() you should be able to )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 11:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1965861#M79604</guid>
      <dc:creator>vidyutverma</dc:creator>
      <dc:date>2022-08-08T11:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1967932#M79789</link>
      <description>&lt;P&gt;Hey, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/87767"&gt;@vidyutverma&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;I solved the problem using a different approach.&lt;BR /&gt;The table has four status:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;0: Login&lt;/LI&gt;
&lt;LI&gt;1: Logout&lt;/LI&gt;
&lt;LI&gt;2: Start appointment&lt;/LI&gt;
&lt;LI&gt;3: End of appointment&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Instead of calculating the gap time between two protocols, I calculated all logins and logouts for id_local, id_operator and date; so I calculated all appointments using the same fields. To find out how much time operators were idle, I decreased the amount of time logged from working time.&lt;/P&gt;
&lt;P&gt;Anyway, I'm greatful for your help and attention.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 18:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1967932#M79789</guid>
      <dc:creator>rotter</dc:creator>
      <dc:date>2022-08-11T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interval between different calls</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1968126#M79812</link>
      <description>&lt;P&gt;Good Work. There are many ways to solve a problem, and many of us stop when we see a problem that is not straightforward to solve. Instead, thinking about the problem and breaking it down into smaller ones really helps in solving it, as well as pushing yourself to try and think of different approaches.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I intentionally resisted giving you the code, as that kills the joy of solving the problem. Maybe later when I am doing a session on interesting problems, I will invite you.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 09:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-between-different-calls/m-p/1968126#M79812</guid>
      <dc:creator>vidyut</dc:creator>
      <dc:date>2022-08-12T09:04:34Z</dc:date>
    </item>
  </channel>
</rss>

