<?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: Getting max(Date)-7 without including weekends in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-max-Date-7-without-including-weekends/m-p/1949305#M1219676</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77128"&gt;@Manish&lt;/a&gt;&amp;nbsp; Please use something like below expression&lt;/P&gt;
&lt;P&gt;NetWorkDays(Today()-7,today())&lt;/P&gt;
&lt;P&gt;Or In your Case I have created 2 Variables: Vstartdate=Max(Date)&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; &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;V7DaysPrior=Max(Date)-7&lt;/P&gt;
&lt;P&gt;Final Expression would be :NetWorkDays($(V7DaysPrior),$(Vstartdate))&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 17:54:16 GMT</pubDate>
    <dc:creator>sidhiq91</dc:creator>
    <dc:date>2022-06-28T17:54:16Z</dc:date>
    <item>
      <title>Getting max(Date)-7 without including weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-Date-7-without-including-weekends/m-p/1949243#M1219673</link>
      <description>&lt;P&gt;Hi Guys&lt;/P&gt;
&lt;P&gt;I have a requirement where I need to find out (Max(Date) -7) but without considering the weekends.&lt;/P&gt;
&lt;P&gt;For example if Max(Date) = 27th Jun 2022 then in that case (Max(Date)-7) should be&amp;nbsp; "17th Jun 2022" and not "21st Jun 2022".&lt;/P&gt;
&lt;P&gt;I want to do this in front end.&lt;/P&gt;
&lt;P&gt;I would really appreciate a response.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 16:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-Date-7-without-including-weekends/m-p/1949243#M1219673</guid>
      <dc:creator>Manish</dc:creator>
      <dc:date>2022-06-28T16:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max(Date)-7 without including weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-Date-7-without-including-weekends/m-p/1949305#M1219676</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77128"&gt;@Manish&lt;/a&gt;&amp;nbsp; Please use something like below expression&lt;/P&gt;
&lt;P&gt;NetWorkDays(Today()-7,today())&lt;/P&gt;
&lt;P&gt;Or In your Case I have created 2 Variables: Vstartdate=Max(Date)&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; &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;V7DaysPrior=Max(Date)-7&lt;/P&gt;
&lt;P&gt;Final Expression would be :NetWorkDays($(V7DaysPrior),$(Vstartdate))&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 17:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-Date-7-without-including-weekends/m-p/1949305#M1219676</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-06-28T17:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max(Date)-7 without including weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-Date-7-without-including-weekends/m-p/1949311#M1219677</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;Maybe this helps you.&lt;/P&gt;
&lt;P&gt;Sample Date generation from Today -1 to past 100 days:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;a:
LOAD 
	Date(Today()-1-RowNo()+1) AS Date
AUTOGENERATE 100;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expression used to desconsider the non working days:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;DATE(Max({&amp;lt;Date-={"=MATCH(WeekDay(Date)*1,0,6)"}&amp;gt;} Date,7))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TiagoCardoso_0-1656439525678.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82868iF793526E04C9382A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TiagoCardoso_0-1656439525678.png" alt="TiagoCardoso_0-1656439525678.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 18:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-Date-7-without-including-weekends/m-p/1949311#M1219677</guid>
      <dc:creator>TiagoCardoso</dc:creator>
      <dc:date>2022-06-28T18:06:46Z</dc:date>
    </item>
  </channel>
</rss>

