<?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: Minus 30 work days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374648#M822078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be Try this?&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; font-size: 13px;"&gt;LET v30DaysOld = Only( &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt; DAY_TYPE = {'WorkDay'}&amp;gt;} Date(Today()) ) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- 30 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2017 19:26:12 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-08-09T19:26:12Z</dc:date>
    <item>
      <title>Minus 30 work days</title>
      <link>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374647#M822076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created the following variable:&amp;nbsp; v30DaysOld = Date((Today()-30))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does calculate 30 days earlier but I want it to calculate 30 work days earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a Field called "DAY_TYPE" that includes WorkDay, Holiday, Off_Friday and Weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have been trying this on my variable:&amp;nbsp; v30DaysOld = &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;DAY_TYPE={'WorkDay'}&amp;gt;}Date(Today()))&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-($&amp;lt;DAY_TYPE={'WorkDay'}&amp;gt;}30) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I know I am doing something wrong here.&amp;nbsp; Can anyone give me some guidance on how I can write this statement properly so that my variable will only minus 30 work days instead of minus 30 days?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374647#M822076</guid>
      <dc:creator>fanninam</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 30 work days</title>
      <link>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374648#M822078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be Try this?&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; font-size: 13px;"&gt;LET v30DaysOld = Only( &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt; DAY_TYPE = {'WorkDay'}&amp;gt;} Date(Today()) ) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- 30 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374648#M822078</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-08-09T19:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 30 work days</title>
      <link>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374649#M822079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use FirstWorkDate() or LastWorkDay() function here&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/firstworkdate.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/firstworkdate.htm"&gt;firstworkdate ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/lastworkdate.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/lastworkdate.htm"&gt;lastworkdate ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374649#M822079</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-09T19:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 30 work days</title>
      <link>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374650#M822080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amber&lt;/P&gt;&lt;P&gt;Please share your calendar or date fields.&lt;/P&gt;&lt;P&gt;The set analysis on constant like 30 does not work&lt;/P&gt;&lt;P&gt;And there is nothing to filter when you select today ()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 01:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374650#M822080</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-10T01:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Minus 30 work days</title>
      <link>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374651#M822081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try as below;&lt;/P&gt;&lt;P&gt;1)write below let statement in script editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; let vToday=today();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2)run the script&lt;/P&gt;&lt;P&gt;3)take a text box and try the below expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =makedate(year(today()),month(AddMonths(today(),-1)),(day(vToday)-30)*(-1))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 10:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Minus-30-work-days/m-p/1374651#M822081</guid>
      <dc:creator>omkarvamsi</dc:creator>
      <dc:date>2017-08-10T10:19:10Z</dc:date>
    </item>
  </channel>
</rss>

