<?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 Calculate the last 4 weeks in Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422526#M810039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the last 4 weeks from today and have that rolling each day. I do not have a week field but i do have a day, month, and year field. the expression i am currently trying to use is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(week(Date(Today()-4)) and DEPT='44840'and epic_status&amp;lt;&amp;gt;'Not Required' and epic_status&amp;lt;&amp;gt;'Done',HOURS)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not seem to work. I was wondering if their was any other expression i could try to accomplish this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>mparker123</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Calculate the last 4 weeks in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422526#M810039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the last 4 weeks from today and have that rolling each day. I do not have a week field but i do have a day, month, and year field. the expression i am currently trying to use is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(week(Date(Today()-4)) and DEPT='44840'and epic_status&amp;lt;&amp;gt;'Not Required' and epic_status&amp;lt;&amp;gt;'Done',HOURS)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not seem to work. I was wondering if their was any other expression i could try to accomplish this.&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/Calculate-the-last-4-weeks-in-Expression/m-p/1422526#M810039</guid>
      <dc:creator>mparker123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the last 4 weeks in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422527#M810040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Week(YourDatefield) as Week &amp;lt;&amp;lt;&amp;lt;&amp;lt; use this in your scrip.&lt;/P&gt;&lt;P&gt;and in front end...&lt;/P&gt;&lt;P&gt;Maybe something like below?&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;epic_status-={'Not Required'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;epic_status-={'Done'},&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; font-size: 13px;"&gt;DEPT={'44840'},&lt;/SPAN&gt;Week = {$(=Max(Week-4))}&amp;gt;} YourDimension)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 20:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422527#M810040</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2017-10-09T20:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the last 4 weeks in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422528#M810042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;week(Date(Today()-4)) should be week(Today()-4*7) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 20:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422528#M810042</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-10-09T20:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the last 4 weeks in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422529#M810043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello Friend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please use Following Expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Date={"&amp;gt;=$(=Weekstart(max(Date),-3))&amp;lt;=$(=max(Date))"},Year=,Month=&amp;gt;} Hours)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 11:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422529#M810043</guid>
      <dc:creator>vikasdesai</dc:creator>
      <dc:date>2017-10-10T11:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the last 4 weeks in Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422530#M810045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did this solve your needs?&lt;/P&gt;&lt;P&gt;If yes, please kindly close this thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-last-4-weeks-in-Expression/m-p/1422530#M810045</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-10-10T14:05:44Z</dc:date>
    </item>
  </channel>
</rss>

