<?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: Date Difference Excluding weekends in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699319#M671462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=CEIL(Interval(MonthEnd(Today())-Today(),'dd') -&amp;nbsp; Div(MonthEnd(Today())-Today(),7) + (weekday(Today()) &amp;gt; WeekDay(MonthEnd(Today()))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 07:35:25 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-09-16T07:35:25Z</dc:date>
    <item>
      <title>Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699310#M671453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to see how many working days are letf in a month, for example what I have below is;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But I want to remove the count for the weekend days or even just Sunday if possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I want this as a caculated dimension in a pivot chart.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_END&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Aidan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 13:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699310#M671453</guid>
      <dc:creator />
      <dc:date>2014-09-15T13:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699311#M671454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Including Weekends.&lt;/P&gt;&lt;P&gt;=Interval(MonthEnd(Today())-Today(),'dd')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excluding Weekends.&lt;/P&gt;&lt;P&gt;=NetWorkDays(Today(),MonthEnd(Today()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 13:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699311#M671454</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-15T13:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699312#M671455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;=NetWorkDays(today(), Month_End)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 13:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699312#M671455</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-15T13:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699313#M671456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thansk you this seems to have worked for me, is their anyway I can discount any day that is Sunday on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Aidan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 13:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699313#M671456</guid>
      <dc:creator />
      <dc:date>2014-09-15T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699314#M671457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately networkdays included no possibility for saturday or sunday. If you needs this you need a more complex expression which additionally counted these day. Easier will be to use a special field within the master-calendar like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(num(weekday(date)) = 6, 0 ,1) as working_day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the use a simply sum(working_day) within your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 01:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699314#M671457</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-16T01:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699315#M671458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you mean that you need as calculated dimention?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to see like one row by every "non sunday" day? What you have in MONTH_END field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 03:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699315#M671458</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2014-09-16T03:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699316#M671459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-IE"&gt;&lt;SPAN lang="EN-IE"&gt;&amp;nbsp; So the below is what I have but I want this to only exclude Sunday and include Saturday&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Excluding Weekends.&lt;/P&gt;&lt;P&gt;=NetWorkDays(Today(),MonthEnd(Today()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699316#M671459</guid>
      <dc:creator />
      <dc:date>2014-09-16T07:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699317#M671460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is meant by Discount Sunday?&lt;/P&gt;&lt;P&gt;Please elaborate little more on this !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699317#M671460</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-16T07:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699318#M671461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I want to know how many working days are left in the month, so today being the 16th, we have 13 work days left including today but excluding the last 2 Sundays of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699318#M671461</guid>
      <dc:creator />
      <dc:date>2014-09-16T07:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699319#M671462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=CEIL(Interval(MonthEnd(Today())-Today(),'dd') -&amp;nbsp; Div(MonthEnd(Today())-Today(),7) + (weekday(Today()) &amp;gt; WeekDay(MonthEnd(Today()))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699319#M671462</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-16T07:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699320#M671463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you kindly, worked perfectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699320#M671463</guid>
      <dc:creator />
      <dc:date>2014-09-16T07:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699321#M671464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, you need only the number of days between 2 dates without the sundays. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/*1*/ =NetWorkDays(Today(),MonthEnd(Today())) +&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/*2*/ Div(Floor(MonthEnd(Today())-Today())+1,7)+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/*3*/ if(WeekDay(Today())&amp;gt;=WeekDay(MonthEnd(Today())+2)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/*4*/ and WeekDay(Today())&amp;lt;&amp;gt;6,1, 0)&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;&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; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*1*/ &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Days Monday to Friday next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/*2*/ &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Complete following weeks always have one Sat each one&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/*3*/ &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If weekday(today) is grater than weekday(monthend+2), it &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;means that you have left a weekend plus the complete weeks &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;/*4*/ &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;With this, you don't plus the Sundays&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if my english is not good. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 03:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699321#M671464</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2014-09-17T03:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date Difference Excluding weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699322#M671465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow Manish, while you are typing this solution, i was thinking about 2 hours in my solution (on Bottom)...&amp;nbsp; Your one is very simple and "beautiful", but mine is ugly!!!!&amp;nbsp; I don't want to correct your solution, the time between the answers is because im in Argentina.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is amazing to keep learning from people like you!!! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 12:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Difference-Excluding-weekends/m-p/699322#M671465</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2014-09-17T12:48:51Z</dc:date>
    </item>
  </channel>
</rss>

