<?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 syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-syntax/m-p/677316#M245729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there anyway to rewrite the following to be included in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum (if([Year Week] = year(today()) &amp;amp; Week(today()-7),&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried the following without success&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;([Year Week] = {'=$(year(today()) &amp;amp; Week(today()-7)'&amp;gt;},&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2014 13:11:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-15T13:11:51Z</dc:date>
    <item>
      <title>set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-syntax/m-p/677316#M245729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there anyway to rewrite the following to be included in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum (if([Year Week] = year(today()) &amp;amp; Week(today()-7),&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried the following without success&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;([Year Week] = {'=$(year(today()) &amp;amp; Week(today()-7)'&amp;gt;},&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-syntax/m-p/677316#M245729</guid>
      <dc:creator />
      <dc:date>2014-07-15T13:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-syntax/m-p/677317#M245730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=sum({&amp;lt;&lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;(&lt;/SPAN&gt;[Year Week] = {'=$( &lt;STRONG&gt;=&lt;/STRONG&gt;year(today()) &amp;amp; Week(today()-7)'&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: added '=' sign and removed comma at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: Remove the '(' in red.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-syntax/m-p/677317#M245730</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-07-15T13:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-syntax/m-p/677318#M245731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bradley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please create a variable to store the current year i.e. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;year(today()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You cannot use &amp;amp; here, use &lt;STRONG&gt;comma &lt;/STRONG&gt;which will act as and function.&lt;BR /&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;"&gt;&lt;BR /&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;"&gt;and use this variable in the set analysis like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;([Year Week] = {'=$(variable) , Week(today()-7)'&amp;gt;}&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;@vi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-syntax/m-p/677318#M245731</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2014-07-15T13:22:36Z</dc:date>
    </item>
  </channel>
</rss>

