<?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 Calulate consecutive days.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calulate-consecutive-days/m-p/252859#M95866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does NetWorkDays function do what you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;networkdays( start_date, end_date {, holiday} )&lt;/P&gt;&lt;P&gt;Returns the number of working days (Monday-Friday) between and&lt;/P&gt;&lt;P&gt;including start_date and end_date taking into account any optionally&lt;/P&gt;&lt;P&gt;listed holidays. All parameters should be valid dates or timestamps.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;networkdays ('2007-02-19', '2007-03-01') returns 9&lt;/P&gt;&lt;P&gt;networkdays ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-&lt;/P&gt;&lt;P&gt;26') returns 8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2012 17:42:14 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2012-01-05T17:42:14Z</dc:date>
    <item>
      <title>Calulate consecutive days..</title>
      <link>https://community.qlik.com/t5/QlikView/Calulate-consecutive-days/m-p/252857#M95864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need help to calculate difference between consecutive days.., below is the description..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a call made Jan4 - wed, jan 5-thu,jan6- fri, jan7- sat, jan9 - Mon, Jan11- Tue.... the difference between the consecutive days is 1. if sunday is come in between consecutive days we&amp;nbsp; need to ignore... And the difference between saterday and monday should be 1 not 2. we usually get the difference between saterday and monday is 2. but i need difference is 1..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: the mentiuoned dates are 2012 year dates... i mean current days for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one help please..&amp;nbsp; Thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 08:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calulate-consecutive-days/m-p/252857#M95864</guid>
      <dc:creator />
      <dc:date>2012-01-05T08:01:37Z</dc:date>
    </item>
    <item>
      <title>Calulate consecutive days..</title>
      <link>https://community.qlik.com/t5/QlikView/Calulate-consecutive-days/m-p/252858#M95865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates:&lt;/P&gt;&lt;P&gt;LOAD Date(makedate(2011)+recno()-1) as Date&lt;/P&gt;&lt;P&gt;AutoGenerate 396;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Calls:&lt;/P&gt;&lt;P&gt;LOAD CallDate&lt;/P&gt;&lt;P&gt;,if(WeekStart(CallDate)= weekstart(peek(CallDate)), CallDate-peek(CallDate), CallDate-peek(CallDate)- (weekstart(CallDate)-weekstart(peek(CallDate)))/7&amp;nbsp; ) as DiffCallDates ;&lt;/P&gt;&lt;P&gt;LOAD Date as CallDate resident Dates where weekday(Date) &amp;lt;6&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;drop table Dates;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. if the dates cross week bounderies, you subtract number of weeks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to do it in the script, you could do something like&lt;/P&gt;&lt;P&gt;=if(WeekStart(CallDate)= weekstart(above(CallDate)), CallDate-above(CallDate), CallDate-above(CallDate)- (weekstart(CallDate)-weekstart(above(CallDate)))/7&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also in a straight table chart with dimension CallDate sorted asc numerical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 10:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calulate-consecutive-days/m-p/252858#M95865</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-05T10:10:38Z</dc:date>
    </item>
    <item>
      <title>Calulate consecutive days..</title>
      <link>https://community.qlik.com/t5/QlikView/Calulate-consecutive-days/m-p/252859#M95866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does NetWorkDays function do what you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;networkdays( start_date, end_date {, holiday} )&lt;/P&gt;&lt;P&gt;Returns the number of working days (Monday-Friday) between and&lt;/P&gt;&lt;P&gt;including start_date and end_date taking into account any optionally&lt;/P&gt;&lt;P&gt;listed holidays. All parameters should be valid dates or timestamps.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;networkdays ('2007-02-19', '2007-03-01') returns 9&lt;/P&gt;&lt;P&gt;networkdays ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-&lt;/P&gt;&lt;P&gt;26') returns 8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 17:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calulate-consecutive-days/m-p/252859#M95866</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-01-05T17:42:14Z</dc:date>
    </item>
  </channel>
</rss>

