<?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 Remove 2nd, 3rd saurdays frm datediff in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324219#M119486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; its helping to detect the days perfectly but i want to eliminate those while taking the difference in the dates, that will be considered as TAT which is what i exactly have to show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please consider this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2012 10:10:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-28T10:10:55Z</dc:date>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324217#M119484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; I have to find diff between 2 dates but 2nd and 3rd saturdays, all sundays should not be considered in the minus operation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have used macro to find the datediff between the dates also have detected the removable days from the two dates as if the flag, Remove and Keep for the days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is , How should i eliminate those days from the datediff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me into this, this is the second time i am posting this Qtn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mcro used : &lt;/P&gt;&lt;P&gt;function datediff2(d1,d2)&lt;/P&gt;&lt;P&gt;datediff2=datediff("D",d1,d2)&lt;/P&gt;&lt;P&gt;end function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression used to detect the days : &lt;/P&gt;&lt;P&gt;if(day(RECD_DATE)/7&amp;gt;1 and day(RECD_DATE)/7&amp;lt;=3 and (WeekDay(RECD_DATE)='Sat' or WeekDay(RECD_DATE)='Sun'),'Remove','Keep') as RECD_1,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 09:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324217#M119484</guid>
      <dc:creator />
      <dc:date>2012-02-28T09:50:42Z</dc:date>
    </item>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324218#M119485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't Matt's solution to your previous post help then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/171177#171177"&gt;http://community.qlik.com/message/171177#171177&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 10:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324218#M119485</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-02-28T10:00:52Z</dc:date>
    </item>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324219#M119486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; its helping to detect the days perfectly but i want to eliminate those while taking the difference in the dates, that will be considered as TAT which is what i exactly have to show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please consider this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 10:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324219#M119486</guid>
      <dc:creator />
      <dc:date>2012-02-28T10:10:55Z</dc:date>
    </item>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324220#M119487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try with this big expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Floor(interval(WeekStart(vEnd) - WeekEnd(vStart),'D') - interval(WeekStart(vEnd) - WeekEnd(vStart),'D')/7)+(6-WeekDay(vStart)*1)+NumMin(6,WeekDay(vEnd)+1)-NumMin(2,interval(WeekStart(vEnd) - WeekEnd(vStart),'D')/7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 10:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324220#M119487</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-28T10:16:20Z</dc:date>
    </item>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324221#M119488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Not Working&amp;nbsp; shows as function(datediff2 used for date difference) is not valid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 11:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324221#M119488</guid>
      <dc:creator />
      <dc:date>2012-02-28T11:10:19Z</dc:date>
    </item>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324222#M119489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Press Ctrl+alt+v&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add a variable vDatediff2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set value as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ='Floor(interval(WeekStart($1) - WeekEnd($2),chr(39)&amp;amp; D &amp;amp;chr(39)) - interval(WeekStart($1) - WeekEnd($2),chr(39)&amp;amp;D&amp;amp;chr(39))/7)+(6-WeekDay($2)*1)+NumMin(6,WeekDay($1)+1)-NumMin(2,interval(WeekStart($1) - WeekEnd($2),chr(39)&amp;amp;D&amp;amp;chr(39))/7)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use $(vDatediff2(EndDate,StartDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 11:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324222#M119489</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-28T11:28:37Z</dc:date>
    </item>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324223#M119490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Celam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got 2 dates viz. Dep_date 2 feb 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rec_date 20 Feb 2012&lt;/P&gt;&lt;P&gt; If i do the datediff for this answer will be 18&lt;/P&gt;&lt;P&gt;but there are date 11 and date 18 which are saturdays and three sundays&lt;/P&gt;&lt;P&gt;therefore the answer would be 13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 12:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324223#M119490</guid>
      <dc:creator />
      <dc:date>2012-02-28T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324224#M119491</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;Please upload sample Application and Data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Perumal A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 12:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324224#M119491</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-02-28T12:49:28Z</dc:date>
    </item>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324225#M119492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What it returns as answer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think it return answer as 14?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 12:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324225#M119492</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-28T12:52:51Z</dc:date>
    </item>
    <item>
      <title>Remove 2nd, 3rd saurdays frm datediff</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324226#M119493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ='(Num(NetWorkDays($1,$2))+Floor(( WeekEnd($2) - WeekStart($1))/7))-NumMin(2,Floor(WeekStart($1) - WeekEnd($2))'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 05:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-2nd-3rd-saurdays-frm-datediff/m-p/324226#M119493</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-29T05:17:03Z</dc:date>
    </item>
  </channel>
</rss>

