<?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: Set analysis query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410308#M426566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Year = {2016}, Business = {"=Sum({&amp;lt;Year = {2017}&amp;gt;}[Planned Sales]) &amp;gt; 0"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Aug 2017 11:34:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-16T11:34:16Z</dc:date>
    <item>
      <title>Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410305#M426563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 346px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" width="64"&gt;&lt;STRONG&gt;PartnerID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Business&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="90"&gt;&lt;STRONG&gt;Planned Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Storage&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Storage&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Compute&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;300&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Compute&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the sum (Sales) of 2016 where 2017 Panned sales is greater than 0 in set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My result should be 300. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410305#M426563</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2017-08-16T11:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410306#M426564</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;STRONG&gt;Sum({&amp;lt;Year = {2016}, [Planned Sales] = {"=Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;[Planned Sales]) &amp;gt; 0&lt;/SPAN&gt;"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410306#M426564</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-16T11:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410307#M426565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried, it doesnt give the result. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410307#M426565</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2017-08-16T11:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410308#M426566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Year = {2016}, Business = {"=Sum({&amp;lt;Year = {2017}&amp;gt;}[Planned Sales]) &amp;gt; 0"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410308#M426566</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-16T11:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410309#M426567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or if this is needed by&amp;nbsp; PartnerID and Business, then I would create a new field in the script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD PartnerID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Planned Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(PartnerID&amp;amp;'|'&amp;amp;Business) as &lt;SPAN style="color: #ff0000;"&gt;Key&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Year = {2016}, &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Key &lt;/STRONG&gt;= {"=Sum({&amp;lt;Year = {2017}&amp;gt;}[Planned Sales]) &amp;gt; 0"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410309#M426567</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-16T11:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410310#M426568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;Many thanks for the reply, first option seems working, this is just the sample, Let me try with couple of scenarios also, the second option looks appealing to me, Let me try that too. will get back soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/1410310#M426568</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2017-08-16T11:44:47Z</dc:date>
    </item>
  </channel>
</rss>

