<?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: Workout time difference between two columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Workout-time-difference-between-two-columns/m-p/380345#M141872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have entered the following code into my expression on chart properties.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;logdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fixby&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-1 * ('18:00'-'08:00')-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;logdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fixby&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which unfortunately does not bring anything up. (It was how I used to work it out in excel)&lt;/P&gt;&lt;P&gt;However if I only enter the following code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;logdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fixby&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-1 * ('18:00'-'08:00')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It seems to shopw 14:00:00 in each column.&amp;nbsp; What do I need to enter after the (08:00') to ensure it calculate the logdate by the fixby to get the amount of hours a call has been outstanding.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2012 13:33:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-23T13:33:06Z</dc:date>
    <item>
      <title>Workout time difference between two columns</title>
      <link>https://community.qlik.com/t5/QlikView/Workout-time-difference-between-two-columns/m-p/380343#M141870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight chart which currnetly houses 3024 rows of data from a SQL command.&amp;nbsp; There are two fields in this straight chart called 'logdate' and 'fixby'.&lt;/P&gt;&lt;P&gt;I want to create another column at the end of the straight chart which basically gives me the difference in days:hh:mm:ss between the logdate and the fixby date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly I would like to know how to create a new column at the end of the straight chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly I would like the know what code or command you would use to calculate the difference between the fixby date and the log date.&amp;nbsp; Also at the same time I would like this to ignore the following times: before 08:00, after 18:00, and all day Saturday and Sunday.&amp;nbsp; Therefore I only want it calculate hours, mins and seconds, aslong as it is between 08:00 to 18:00 - Monday to Friday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 11:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Workout-time-difference-between-two-columns/m-p/380343#M141870</guid>
      <dc:creator />
      <dc:date>2012-08-23T11:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Workout time difference between two columns</title>
      <link>https://community.qlik.com/t5/QlikView/Workout-time-difference-between-two-columns/m-p/380344#M141871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you mean the Chart "Straight Table". Then you can add a new expression.&lt;/P&gt;&lt;P&gt;If you mean the "Table Box" it is not possible to add a calculated field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to get the difference between two dates / time, you should try to use the numeric value of the date/time.&lt;/P&gt;&lt;P&gt;It will look quite strange, but very nice to calculate with (i.e. 41544.55555 ).&lt;/P&gt;&lt;P&gt;after calculation you can convert it back to a real date/time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you only want to take care of mon-fri try weekday(). Returns 0-6 and you should use only the days you want.&lt;/P&gt;&lt;P&gt;for the times: just check the time function and use it for compares. (09.00 am is 0.375 according to help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 12:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Workout-time-difference-between-two-columns/m-p/380344#M141871</guid>
      <dc:creator />
      <dc:date>2012-08-23T12:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Workout time difference between two columns</title>
      <link>https://community.qlik.com/t5/QlikView/Workout-time-difference-between-two-columns/m-p/380345#M141872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have entered the following code into my expression on chart properties.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;logdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fixby&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-1 * ('18:00'-'08:00')-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;logdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fixby&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;which unfortunately does not bring anything up. (It was how I used to work it out in excel)&lt;/P&gt;&lt;P&gt;However if I only enter the following code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;logdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fixby&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-1 * ('18:00'-'08:00')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It seems to shopw 14:00:00 in each column.&amp;nbsp; What do I need to enter after the (08:00') to ensure it calculate the logdate by the fixby to get the amount of hours a call has been outstanding.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 13:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Workout-time-difference-between-two-columns/m-p/380345#M141872</guid>
      <dc:creator />
      <dc:date>2012-08-23T13:33:06Z</dc:date>
    </item>
  </channel>
</rss>

