<?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: Help Required - Urgent in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338846#M494156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can break it down something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;if(TotalHours &amp;lt; 10, TotalHours, ((TotalHours - HoursFirstDay - HoursLastDay) /24) * 10 + CalculatedHoursFirstDay + CalculatedHoursLastDay) as Downtime,&lt;BR /&gt;*; &lt;BR /&gt;Load&lt;BR /&gt;Interval(End_Time - Start_Time) TotalTime,&lt;BR /&gt;17:30 - Start_Time as CalculatedHoursFirstDay,&lt;BR /&gt;23:59 - Start_Time as HoursFirstDay,&lt;BR /&gt;End_Time - 07:30 as CalculatedHoursLastDays,&lt;BR /&gt;End_Time - 00:00 as HoursLastDay,&lt;BR /&gt;*;&lt;BR /&gt;LOAD&lt;BR /&gt;..&lt;/P&gt;&lt;P&gt;drop field TotalTime;&lt;BR /&gt;drop field CalculatedHoursFirstDay;&lt;BR /&gt;drop field HoursFirstDay;&lt;BR /&gt;drop field CalculatedHoursLastDays;&lt;BR /&gt;drop field HoursLastDay;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2012 12:29:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-05T12:29:58Z</dc:date>
    <item>
      <title>Help Required - Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338845#M494155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i get the extact outofservice hours from the below example. Please find&amp;nbsp; the attached excel to understand he requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if u look @&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 99px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="height: 12.75pt; width: 74pt;" width="99"&gt;INC000000076899&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The down time is calculated as 69.81666667 (Hrs). but if u look @ the&amp;nbsp; matrix avaliblity it is from morning 7:30 to evening 5:30 pm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i have to calulate only the duration from between the access start and end time's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to this logic if we calculate the down time duartion should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since it down from 5-02-2012 13:05:00 to 08/02/2012 10:54:18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the as per logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on 5th feb it shoul be from 05-02-2012 13:05:00 to 05-02-2012 17:30:00 i.e 5 Hrs 25 Mns&lt;/P&gt;&lt;P&gt;on 6th feb it shoul be from 06-02-2012 07:30:00 to 06-02-2012 17:30:00 i.e 10 Hrs&lt;/P&gt;&lt;P&gt;on 7th feb it shoul be from 07-02-2012 07:30:00 to 07-02-2012 17:30:00 i.e 10 Hrs&lt;/P&gt;&lt;P&gt;on 8th feb it shoul be from 08-02-2012 07:30:00 to 08-02-2012 10:54:18 i.e 3 Hrs 20 mns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the total down time duration should be around 30 Hrs only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achive this&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;Regards&lt;/P&gt;&lt;P&gt;Venkatesh Salla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 08:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338845#M494155</guid>
      <dc:creator />
      <dc:date>2012-04-05T08:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required - Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338846#M494156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can break it down something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;if(TotalHours &amp;lt; 10, TotalHours, ((TotalHours - HoursFirstDay - HoursLastDay) /24) * 10 + CalculatedHoursFirstDay + CalculatedHoursLastDay) as Downtime,&lt;BR /&gt;*; &lt;BR /&gt;Load&lt;BR /&gt;Interval(End_Time - Start_Time) TotalTime,&lt;BR /&gt;17:30 - Start_Time as CalculatedHoursFirstDay,&lt;BR /&gt;23:59 - Start_Time as HoursFirstDay,&lt;BR /&gt;End_Time - 07:30 as CalculatedHoursLastDays,&lt;BR /&gt;End_Time - 00:00 as HoursLastDay,&lt;BR /&gt;*;&lt;BR /&gt;LOAD&lt;BR /&gt;..&lt;/P&gt;&lt;P&gt;drop field TotalTime;&lt;BR /&gt;drop field CalculatedHoursFirstDay;&lt;BR /&gt;drop field HoursFirstDay;&lt;BR /&gt;drop field CalculatedHoursLastDays;&lt;BR /&gt;drop field HoursLastDay;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 12:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338846#M494156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-05T12:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required - Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338847#M494157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; HI Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry but can please take some time explain in detail, with respect &lt;/P&gt;&lt;P&gt;to my data and fileds name Please&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;Regards&lt;/P&gt;&lt;P&gt;Venkatesh Salla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 12:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338847#M494157</guid>
      <dc:creator />
      <dc:date>2012-04-05T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required - Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338848#M494158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The first Load is just a load of your Excel sheet, the the other two preceding loads are for calculating the downtime.&lt;BR /&gt;- So if the duraion is shorter than 10 hours, the duration is correct, &lt;BR /&gt;- else we take the duration of all the whole days divide with 24 and * 10 (or AccessEndTime - AccessStartTime) in order to only get the hours from the whole days.&lt;BR /&gt;- then we add the calculated down time from the first and last day.&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Load&lt;BR /&gt;if(Duration,&amp;lt; 10, Duration,((Duration - HoursFirstDay - HoursLastDay) /24) * 10 + CalculatedHoursFirstDay + CalculatedHoursLastDay) as Downtime,&lt;BR /&gt;*; &lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;AccessEndTime- Start_Time as CalculatedTimeFirstDay,&lt;BR /&gt;23:59 - Start_Time as TimeFirstDay,&lt;BR /&gt;End_Time - AccessStartTime as CalculatedTimeLastDays,&lt;BR /&gt;End_Time - 00:00 as TimeLastDay,&lt;BR /&gt;*;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;ID,&lt;BR /&gt;Start_Time,&lt;BR /&gt;End_Time,&lt;BR /&gt;Duration,&lt;BR /&gt;AccessStartTime,&lt;BR /&gt;AccessEndTime,&lt;BR /&gt;..&lt;BR /&gt;From CH148....xls;&lt;/P&gt;&lt;P&gt;//these field can be dropped since they are only used to calculate the downtime&lt;BR /&gt;drop field TotalTime;&lt;BR /&gt;drop field CalculatedHoursFirstDay;&lt;BR /&gt;drop field HoursFirstDay;&lt;BR /&gt;drop field CalculatedHoursLastDays;&lt;BR /&gt;drop field HoursLastDay;&lt;/P&gt;&lt;P&gt;//of course you will need to chech syntax and formats in order to make this work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 13:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338848#M494158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-05T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required - Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338849#M494159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hey, did you manage it to work? I did an example here, you can see if this match your requirements. /Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 13:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338849#M494159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-06T13:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required - Urgent</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338850#M494160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very thank full. You have solved my big issue &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;Thanks in advance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkatesh Salla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 14:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Required-Urgent/m-p/338850#M494160</guid>
      <dc:creator />
      <dc:date>2012-04-06T14:56:27Z</dc:date>
    </item>
  </channel>
</rss>

