<?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 Doesn't work / Aggr in Sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Doesn-t-work-Aggr-in-Sum/m-p/1101410#M365346</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Sum({&amp;lt;Year={2016}&amp;gt;} Aggr(&lt;SPAN style="color: #ff0000;"&gt;Only({&amp;lt;Year = {2016}&amp;gt;}&lt;/SPAN&gt;Budget&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;STRONG&gt;,Segment,Region, MonthYear))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 13:54:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-23T13:54:48Z</dc:date>
    <item>
      <title>Set Analysis Doesn't work / Aggr in Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Doesn-t-work-Aggr-in-Sum/m-p/1101409#M365345</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;Today I faced a problem:&lt;/P&gt;&lt;P&gt;Set Analysis Doesn't work, when i use Aggr function in Sum function.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year={2016}&amp;gt;} Aggr(Budget,Segment,Region, MonthYear))&lt;/P&gt;&lt;P&gt;(budget loaded only on 2016)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like:&lt;/P&gt;&lt;P&gt;Without Year Selection - ok result &lt;SPAN style="font-size: 13.3333px;"&gt;"3618810433,6481" (dada loaded only on 2016)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Снимок.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128970_Снимок.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;With selected Year=2016 - ok - result &lt;SPAN style="font-size: 13.3333px;"&gt;"3618810433,6481"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Снимок1.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/128990_Снимок1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;But if we select other Year (2015 for example)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Снимок3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/128991_Снимок3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;We will get "0" as result.. It means, that our Set in function &lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Year={2016}&amp;gt;} Aggr(.. doesn't work. The result must be "3618810433,6481"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Help me somebody.. Why [Set Analysis Doesn't work / Aggr in Sum]?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 12:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Doesn-t-work-Aggr-in-Sum/m-p/1101409#M365345</guid>
      <dc:creator>vkozlov</dc:creator>
      <dc:date>2016-06-23T12:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Doesn't work / Aggr in Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Doesn-t-work-Aggr-in-Sum/m-p/1101410#M365346</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Sum({&amp;lt;Year={2016}&amp;gt;} Aggr(&lt;SPAN style="color: #ff0000;"&gt;Only({&amp;lt;Year = {2016}&amp;gt;}&lt;/SPAN&gt;Budget&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;STRONG&gt;,Segment,Region, MonthYear))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Doesn-t-work-Aggr-in-Sum/m-p/1101410#M365346</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-23T13:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Doesn't work / Aggr in Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Doesn-t-work-Aggr-in-Sum/m-p/1101411#M365347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Only, it might be better to use nested sum. That way Aggr will do a row reduction and improve expression performance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 23:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Doesn-t-work-Aggr-in-Sum/m-p/1101411#M365347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-23T23:30:56Z</dc:date>
    </item>
  </channel>
</rss>

