<?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 'and' in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385704#M486266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am strugling with the following:&lt;/P&gt;&lt;P&gt;I need need the sales of last year, lower then the max week and lower then the current week.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Year={$(=max(Year)-1)},Week = {"&amp;lt;$(=week(Today()))"} and Week = {"&amp;lt;$(=max(Week))"}&amp;nbsp; &amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;but this does not work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;EM style=": ; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 08:36:44 GMT</pubDate>
    <dc:creator>hansrokers</dc:creator>
    <dc:date>2013-03-25T08:36:44Z</dc:date>
    <item>
      <title>'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385704#M486266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am strugling with the following:&lt;/P&gt;&lt;P&gt;I need need the sales of last year, lower then the max week and lower then the current week.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Year={$(=max(Year)-1)},Week = {"&amp;lt;$(=week(Today()))"} and Week = {"&amp;lt;$(=max(Week))"}&amp;nbsp; &amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;but this does not work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;EM style=": ; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 08:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385704#M486266</guid>
      <dc:creator>hansrokers</dc:creator>
      <dc:date>2013-03-25T08:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: 'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385705#M486267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this, "and" is replaced by comma ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Year={$(=max(Year)-1)},Week = {"&amp;lt;$(=week(Today()))","&amp;lt;$(=max(Week))"}&amp;nbsp; &amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 08:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385705#M486267</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-03-25T08:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: 'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385706#M486268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This wil give me the total sales of last year as no week has been selected &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 08:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385706#M486268</guid>
      <dc:creator>hansrokers</dc:creator>
      <dc:date>2013-03-25T08:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: 'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385707#M486269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$ &amp;lt;Year={$(=max(Year)-1)},Week = {"&amp;lt;$(=week(Today()))&amp;lt;$(=max(Week))"}&amp;nbsp; &amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385707#M486269</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-25T09:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: 'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385708#M486270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point try to use a workaround (I don't know how your data are organized):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a variable compute max between max(week) and week(today()) then use that only variable in set analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385708#M486270</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-03-25T09:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: 'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385709#M486271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This results in 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385709#M486271</guid>
      <dc:creator>hansrokers</dc:creator>
      <dc:date>2013-03-25T09:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: 'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385710#M486272</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Its because you may be be having the relevant data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Kindly upload your QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385710#M486272</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-25T09:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: 'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385711#M486273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been able to solve the problem with an if-statement, but I am sure there must be a better solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(Week)&amp;gt;0, sum({$ &amp;lt;Year={$(=max(Year)-1)},Week = {"&amp;lt;=$(=max(Week))"} &amp;gt;} Sales),sum({$ &amp;lt;Year={$(=max(Year)-1)},Week = {"&amp;lt;=$(=week(today()))"} &amp;gt;} Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385711#M486273</guid>
      <dc:creator>hansrokers</dc:creator>
      <dc:date>2013-03-25T09:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: 'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385712#M486274</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can replace this using below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$ &amp;lt;Year={$(=max(Year)-1)},Week = {"&amp;lt;=$(=if(GetSelectedCount(Week)&amp;gt;0,max(Week),week(today())))"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385712#M486274</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-25T09:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: 'and' in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385713#M486275</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$ &amp;lt;Year={$(=max(Year)-1)}, Week = {"&amp;lt;$(=week(Today()))"} * {"&amp;lt;$(=max(Week))"}&amp;nbsp; &amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/and-in-set-analysis/m-p/385713#M486275</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-03-25T09:56:29Z</dc:date>
    </item>
  </channel>
</rss>

