<?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: Aggr sum and set analysis expression problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574381#M478883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is the reduced Qvw, as suggested by Clever Anjos.&lt;/P&gt;&lt;P&gt;The data that is returning as it is, it´s confirmed to be correct. So, any changes to expressions must return same values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BS.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5982"&gt;PSL_Operacional_1.qvw&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 17:32:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-26T17:32:40Z</dc:date>
    <item>
      <title>Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574373#M478875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I´m having problems with an Aggr expression.&lt;/P&gt;&lt;P&gt;To selected year, it works fine, but when I use the same expression, just switching the set analysis to return resuts to previous year, it doesn´t return values.&lt;/P&gt;&lt;P&gt;Variables are returning the years correctly.&lt;/P&gt;&lt;P&gt;To current year: Aggr(sum({$&amp;lt;Ano={$(vcurrentYear)}&amp;gt;}Aggr(valor, idProdutoReservadoValor,Ano)), [Nome Social]) - This works fine!&lt;/P&gt;&lt;P&gt;To previous Year: Aggr(sum({$&amp;lt;Ano={$(vPreviousYear)}&amp;gt;}Aggr(valor, idProdutoReservadoValor,Ano)), [Nome Social]) - Returns 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bruno Silva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574373#M478875</guid>
      <dc:creator />
      <dc:date>2014-02-26T16:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574374#M478876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If possible please upload your sample file or apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574374#M478876</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-26T16:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574375#M478877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your expression should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$&amp;lt;Ano={$(vcurrentYear)}&amp;gt;}&lt;/SPAN&gt;aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$&amp;lt;Ano={$(vcurrentYear)}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;valor),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;idProdutoReservadoValor,Ano&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574375#M478877</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-02-26T16:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574376#M478878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but due to confidentiality issues, I cannot provide sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574376#M478878</guid>
      <dc:creator />
      <dc:date>2014-02-26T16:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574377#M478879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just tested... It returns full data results, not just the selected year. I think that it´s ignoring set analysis and even the selections made!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574377#M478879</guid>
      <dc:creator />
      <dc:date>2014-02-26T16:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574378#M478880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have alternate states into your app?&lt;/P&gt;&lt;P&gt;This expression must respect your selections because of $.&lt;/P&gt;&lt;P&gt;Very weird&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574378#M478880</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-02-26T16:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574379#M478881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do have Alternate States in the Document, but these Straight Table and the sheet has no active Alternate State. Furthermore, I created specific variables to test these expressions, because it wasn´t me that developed the app, and I wasn´t aware of the full implications of what was already developed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I´m not being clear with my text, ask to explain better, please. English is not my native language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574379#M478881</guid>
      <dc:creator />
      <dc:date>2014-02-26T16:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574380#M478882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can scramble your data, will make our life easier &lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574380#M478882</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-02-26T17:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574381#M478883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is the reduced Qvw, as suggested by Clever Anjos.&lt;/P&gt;&lt;P&gt;The data that is returning as it is, it´s confirmed to be correct. So, any changes to expressions must return same values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BS.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5982"&gt;PSL_Operacional_1.qvw&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574381#M478883</guid>
      <dc:creator />
      <dc:date>2014-02-26T17:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574382#M478884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn´t understand very well your datamodel.&lt;/P&gt;&lt;P&gt;Check if this expression returns what you need for last year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Ano={$(vAnoAntSeleccionado)}&amp;gt;}Aggr(sum({$&amp;lt;Ano={$(vAnoAntSeleccionado)}&amp;gt;}Aggr(only({$&amp;lt;Ano={$(vAnoAntSeleccionado)}&amp;gt;}valor), idProdutoReservadoValor,Ano)), [Nome Social]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 20:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574382#M478884</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-02-26T20:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr sum and set analysis expression problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574383#M478885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, Clever Anjos! It worked just perfect! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I don´t understand the data model either! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt; As I said before, It wasn´t me that developed the qvw. And I really think that the model is a mess, but I was told that the business is very complex... I didn´t had the time to analyze it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Bruno Silva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 10:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-sum-and-set-analysis-expression-problem/m-p/574383#M478885</guid>
      <dc:creator />
      <dc:date>2014-02-27T10:27:20Z</dc:date>
    </item>
  </channel>
</rss>

