<?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 Set Analysis with Variable Dates and an Operation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable-Dates-and-an-Operation/m-p/308761#M1199674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hard to be sure of syntax without being able to check it, plus the variable names in your two sums are inconsistent both with each other and with the variables you listed in the post. But I'm guessing this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(&amp;lt;Weeks={"&amp;gt;=$(=$(vlatestweek)-$(vweeksago)) &amp;lt;$(vlatestweek)"}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2011 21:17:08 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-02-25T21:17:08Z</dc:date>
    <item>
      <title>Set Analysis with Variable Dates and an Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable-Dates-and-an-Operation/m-p/308760#M1199673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following variables:&lt;/P&gt;&lt;P&gt;1. vLatestWeek&lt;/P&gt;&lt;P&gt;2. vWeeksAgo&lt;/P&gt;&lt;P&gt;3. vBeginWeek&lt;/P&gt;&lt;P&gt;Is it possible to write in an expression using these variables to sum up all the weeks from the LatestWeek to however WeeksAgo? without having to use the BeginWeek?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To further this, both of the expression below are functional but don't give the answer I need. I believe it's a combination of the two but my syntatical permutations are not working. Any help is much appreciated! Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Sum({&amp;lt; Weeks = {'$(=$(vmaxweek) - $(vweeksago))'} &amp;gt;} Sales)&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Sum({&amp;lt;Weeks={"&amp;gt;=$(vbeginweek)&amp;lt; $(vlatestweek)"}&amp;gt;}Sales)&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 17:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable-Dates-and-an-Operation/m-p/308760#M1199673</guid>
      <dc:creator />
      <dc:date>2011-02-25T17:28:17Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Variable Dates and an Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable-Dates-and-an-Operation/m-p/308761#M1199674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hard to be sure of syntax without being able to check it, plus the variable names in your two sums are inconsistent both with each other and with the variables you listed in the post. But I'm guessing this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(&amp;lt;Weeks={"&amp;gt;=$(=$(vlatestweek)-$(vweeksago)) &amp;lt;$(vlatestweek)"}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 21:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable-Dates-and-an-Operation/m-p/308761#M1199674</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-25T21:17:08Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Variable Dates and an Operation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable-Dates-and-an-Operation/m-p/308762#M1199675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! this worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 19:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable-Dates-and-an-Operation/m-p/308762#M1199675</guid>
      <dc:creator />
      <dc:date>2011-03-02T19:25:15Z</dc:date>
    </item>
  </channel>
</rss>

