<?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 Resolution Time out of range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resolution-Time-out-of-range/m-p/409982#M152479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;I'm trying to calculate the time spent for solving activities.&lt;/P&gt;&lt;P&gt;The range time is 10 AM - 6 PM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw that on another topic there was a similar problem so I used the following code:&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;((NetWorkDays(CREATEDDATETIME,ProcessCompleted) //FULL Working days between two dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -IF(Frac(ProcessCompleted)&amp;lt;Time#('18:00','hh:mm'),1,0)&amp;nbsp; //if close day isn't complete subtract 1 from Network days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -IF(Frac(CREATEDDATETIME)&amp;gt;Time#('10:00','hh:mm'),1,0)&amp;nbsp;&amp;nbsp; //if start day isn't complete subtract 1 from Network days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) * 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+RangeMax(((Time#('18:00','hh:mm') - Frac(CREATEDDATETIME))*24),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+RangeMax(((Frac(ProcessCompleted) - Time#('09:00','hh:mm'))*24),0)) - (NetWorkDays(CREATEDDATETIME,ProcessCompleted))&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I turned the result(OreEffettive) in hours and minutes with the following code:&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SubField(OreEffettive,',',1)&amp;amp;','&amp;amp;subfield(left(subfield(OreEffettive,',',2),2)*60/100,',',1)&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results are correct when the date of creation or termination are between 10 AM and 6 PM, but there are errors when the creation date (or resolution) is outside this range.&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;CREATEDDATETIME = 30/11/2012 10.44&lt;/P&gt;&lt;P&gt;ProcessCompleted = 30/11/2012 10:59&lt;/P&gt;&lt;P&gt;Resolution = 0.15 h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATEDDATETIME = 13/02/2013 18.11&lt;/P&gt;&lt;P&gt;ProcessCompleted = 13/02/2013 18.15&lt;/P&gt;&lt;P&gt;Resolution = 8.15 h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 May 2013 08:30:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-27T08:30:17Z</dc:date>
    <item>
      <title>Resolution Time out of range</title>
      <link>https://community.qlik.com/t5/QlikView/Resolution-Time-out-of-range/m-p/409982#M152479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;I'm trying to calculate the time spent for solving activities.&lt;/P&gt;&lt;P&gt;The range time is 10 AM - 6 PM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw that on another topic there was a similar problem so I used the following code:&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;((NetWorkDays(CREATEDDATETIME,ProcessCompleted) //FULL Working days between two dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -IF(Frac(ProcessCompleted)&amp;lt;Time#('18:00','hh:mm'),1,0)&amp;nbsp; //if close day isn't complete subtract 1 from Network days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -IF(Frac(CREATEDDATETIME)&amp;gt;Time#('10:00','hh:mm'),1,0)&amp;nbsp;&amp;nbsp; //if start day isn't complete subtract 1 from Network days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) * 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+RangeMax(((Time#('18:00','hh:mm') - Frac(CREATEDDATETIME))*24),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+RangeMax(((Frac(ProcessCompleted) - Time#('09:00','hh:mm'))*24),0)) - (NetWorkDays(CREATEDDATETIME,ProcessCompleted))&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I turned the result(OreEffettive) in hours and minutes with the following code:&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SubField(OreEffettive,',',1)&amp;amp;','&amp;amp;subfield(left(subfield(OreEffettive,',',2),2)*60/100,',',1)&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results are correct when the date of creation or termination are between 10 AM and 6 PM, but there are errors when the creation date (or resolution) is outside this range.&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;CREATEDDATETIME = 30/11/2012 10.44&lt;/P&gt;&lt;P&gt;ProcessCompleted = 30/11/2012 10:59&lt;/P&gt;&lt;P&gt;Resolution = 0.15 h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATEDDATETIME = 13/02/2013 18.11&lt;/P&gt;&lt;P&gt;ProcessCompleted = 13/02/2013 18.15&lt;/P&gt;&lt;P&gt;Resolution = 8.15 h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 08:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resolution-Time-out-of-range/m-p/409982#M152479</guid>
      <dc:creator />
      <dc:date>2013-05-27T08:30:17Z</dc:date>
    </item>
  </channel>
</rss>

