<?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, Aggr and priorities in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574644#M214007</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;I am not sure what you are trying to do, but have you tried a straight table with codemp as the dimension&amp;nbsp; and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{$&amp;lt;year1={'2012'}, year2=&amp;gt;} totalvalue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 13:37:49 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-03-28T13:37:49Z</dc:date>
    <item>
      <title>Set Analysis, Aggr and priorities</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574641#M214004</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;After so many tries, I need some help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;year1={'2012'}, year2=&amp;gt;} aggr(totalvalue,codemp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that first QV is executing "aggr(totalvalue,codemp)" without taking account only fields filtered by "{$&amp;lt;year1={'2012'}, year2=&amp;gt;}".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried, for example:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;codemp = P({$&amp;lt;year1={'$(=getfieldselections(year2))'},year2=&amp;gt;})&amp;gt;} aggr(totalvalue,codemp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me? What is the correct way? Because totalvalue needs to be aggregated by codemp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 13:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574641#M214004</guid>
      <dc:creator />
      <dc:date>2014-03-28T13:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Aggr and priorities</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574642#M214005</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;You can try :&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;"&gt;=sum({$&amp;lt;year1={'2012'}, year2=&amp;gt;} aggr(&lt;STRONG&gt;Sum&lt;/STRONG&gt;(totalvalue),codemp))&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;Aurélien&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 13:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574642#M214005</guid>
      <dc:creator>Aurelien_Martinez</dc:creator>
      <dc:date>2014-03-28T13:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Aggr and priorities</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574643#M214006</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;"&gt;Sum(Aggr(sum({$&amp;lt;year1={'2012'}, year2=&amp;gt;} totalvalue),codemp))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 13:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574643#M214006</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-28T13:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Aggr and priorities</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574644#M214007</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;I am not sure what you are trying to do, but have you tried a straight table with codemp as the dimension&amp;nbsp; and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{$&amp;lt;year1={'2012'}, year2=&amp;gt;} totalvalue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 13:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574644#M214007</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-28T13:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Aggr and priorities</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574645#M214008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all...&lt;/P&gt;&lt;P&gt;I have a BI very complex joining a lot of systems. I have a sheet that is a summary of the information, so I need to manually set and clear some fields.&lt;/P&gt;&lt;P&gt;What I need in this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. year1 is empty and needs to be equal to year2&lt;/P&gt;&lt;P&gt;2. year2 needs to be cleared&lt;/P&gt;&lt;P&gt;3. sum totalvalue aggregated by codemp&lt;/P&gt;&lt;P&gt;4. it will be in a text box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574645#M214008</guid>
      <dc:creator />
      <dc:date>2014-03-28T14:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Aggr and priorities</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574646#M214009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{$&amp;lt;year1={'2012'}, year2=&amp;gt;} totalvalue),codemp)&lt;/SPAN&gt;&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;"&gt;or&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;aggr(sum( if Year1= 2012 and year2&amp;lt;&amp;gt;0, totalvalue)),codemp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 14:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574646#M214009</guid>
      <dc:creator />
      <dc:date>2014-03-28T14:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Aggr and priorities</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574647#M214010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;year1={'2012'}, year2=&amp;gt;} aggr({$&amp;lt;year1={'2012'}, year2=&amp;gt;} totalvalue,codemp))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 16:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574647#M214010</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2014-03-28T16:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Aggr and priorities</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574648#M214011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression makes sense... it's exactly what I need. I need to show to "AGGR" that it needs to respect the set analisys.&lt;/P&gt;&lt;P&gt;But after AGGR I can not have set analisys "{}".... It should have some aggregate function as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 18:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-and-priorities/m-p/574648#M214011</guid>
      <dc:creator />
      <dc:date>2014-03-28T18:27:19Z</dc:date>
    </item>
  </channel>
</rss>

