<?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: Expression for Next 5 Days (skipping weekend) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-for-Next-5-Days-skipping-weekend/m-p/1158352#M377684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Try &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;lastworkdate()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2016 04:31:50 GMT</pubDate>
    <dc:creator>varshavig12</dc:creator>
    <dc:date>2016-06-21T04:31:50Z</dc:date>
    <item>
      <title>Expression for Next 5 Days (skipping weekend)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-Next-5-Days-skipping-weekend/m-p/1158351#M377683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a straight table with one dimension as 'Sales Person' and then I want 5 expression columns which should show the follow ups for next 5 days (working days only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data model, I have a follow up date field against each order Id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000;"&gt;Currently I am using an expression like this..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;=count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Follow up Date]&lt;/SPAN&gt; = &lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()), &lt;SPAN style="color: #800000;"&gt;OrderId&lt;/SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;=count&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #800000;"&gt;[Follow up Date]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;()+1), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #800000;"&gt;OrderId&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;=count&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #800000;"&gt;[Follow up Date]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;()+2), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #800000;"&gt;OrderId&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;=count&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #800000;"&gt;[Follow up Date]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;()+3), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #800000;"&gt;OrderId&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;=count&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #800000;"&gt;[Follow up Date]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;()+4), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #800000;"&gt;OrderId&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;And labels like this&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;=Weekday&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;())&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;=Weekday&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;()+1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;=Weekday&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;()+2)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;=Weekday&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;()+3)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;=Weekday&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333px; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13.3333px;"&gt;()+4)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But doing this also including Saturday and Sunday. How can I skip Weekend so if today is Tuesday then it will show Monday as the fifth day instead of Saturday!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 04:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-Next-5-Days-skipping-weekend/m-p/1158351#M377683</guid>
      <dc:creator />
      <dc:date>2016-06-21T04:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for Next 5 Days (skipping weekend)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-Next-5-Days-skipping-weekend/m-p/1158352#M377684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Try &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;lastworkdate()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 04:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-Next-5-Days-skipping-weekend/m-p/1158352#M377684</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-06-21T04:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for Next 5 Days (skipping weekend)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-Next-5-Days-skipping-weekend/m-p/1158353#M377685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today's date:&amp;nbsp; LastWorkDate(today(),1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LastWorkDate(today(),2)&lt;/P&gt;&lt;P&gt;LastWorkDate(today(),3)&lt;/P&gt;&lt;P&gt;LastWorkDate(today(),4)&lt;/P&gt;&lt;P&gt;LastWorkDate(today(),5)&lt;/P&gt;&lt;P&gt;LastWorkDate(today(),6)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 04:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-Next-5-Days-skipping-weekend/m-p/1158353#M377685</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-06-21T04:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for Next 5 Days (skipping weekend)</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-Next-5-Days-skipping-weekend/m-p/1158354#M377686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks mate got what I wanted &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 04:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-Next-5-Days-skipping-weekend/m-p/1158354#M377686</guid>
      <dc:creator />
      <dc:date>2016-06-21T04:43:40Z</dc:date>
    </item>
  </channel>
</rss>

