<?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 &amp; Aggr problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-problem/m-p/1179259#M382417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't think it's equivalent (and you also get different results, right?).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Jul 2016 20:53:40 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-07-31T20:53:40Z</dc:date>
    <item>
      <title>Set Analysis &amp; Aggr problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-problem/m-p/1179256#M382414</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 have a table that presents:&lt;/P&gt;&lt;P&gt;Customers who have had&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sales in 2016,&lt;/LI&gt;&lt;LI&gt;which had in 2015 (same period),&lt;/LI&gt;&lt;LI&gt;sales in 2016 and&lt;/LI&gt;&lt;LI&gt;sales in 2015 and&lt;/LI&gt;&lt;LI&gt;I want to get (the data shown are not well) a column with customers who increased and customers who have decreased their sales volume more than on e% that you can choose value (vVaria)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Attached file qv&lt;IMG __jive_id="133118" alt="p_prueba.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133118_p_prueba.png" style="height: 311px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Formula in Suben for Acumulated are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;=Sum(if(aggr(Sum({&amp;lt;Año={$(AñoActual)}, Mes={'&amp;lt;=$(MesActual)'}&amp;gt;} imVentaTAM)&amp;nbsp; -&amp;nbsp; (1+vVaria) * Sum({&amp;lt;Año={$(AñoAnterior)}, Mes={'&amp;lt;=$(MesActual)'}&amp;gt;} imVentaTAM), Cliente) &amp;gt;0, 1,0))&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos,&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jul 2016 18:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-problem/m-p/1179256#M382414</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2016-07-30T18:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis &amp; Aggr problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-problem/m-p/1179257#M382415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to filter customers using an outer aggregation set analysis that made sales in both years, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( &lt;STRONG&gt;{&amp;lt;Cliente = {"=Sum({&amp;lt;Año={$(AñoActual)}, Mes={'=$(MesActual)'}&amp;gt;} imVentaTAM) &amp;gt;0 AND Sum({&amp;lt;Año={$(AñoAnterior)}, Mes={'=$(MesActual)'}&amp;gt;} imVentaTAM)&amp;gt;0"} &amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;aggr(If(&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Año]={$(AñoActual)}, Mes={'=$(MesActual)'}&amp;gt;} imVentaTAM)&amp;nbsp; -&amp;nbsp; (1+vVaria) * Sum({&amp;lt;[Año]={$(AñoAnterior)}, Mes={'=$(MesActual)'}&amp;gt;} imVentaTAM)&amp;gt;0,1,0), Cliente)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2016 16:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-problem/m-p/1179257#M382415</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-07-31T16:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis &amp; Aggr problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-problem/m-p/1179258#M382416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Año={$(AñoActual), $(AñoAnterior)}, Mes={'&amp;lt;=$(MesActual)'}&amp;gt;} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(aggr(Sum({&amp;lt;Año={$(AñoActual)}, Mes={'&amp;lt;=$(MesActual)'}&amp;gt;} imVentaTAM)&amp;nbsp; -&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1+vVaria) * Sum({&amp;lt;Año={$(AñoAnterior)}, Mes={'&amp;lt;=$(MesActual)'}&amp;gt;} imVentaTAM), Cliente) &amp;gt;0, 1,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;¿is equivalent?&amp;nbsp; or changing &lt;STRONG&gt;AND&lt;/STRONG&gt; by &lt;STRONG&gt;OR &lt;/STRONG&gt;in your expresion. But I have diferent valors in each option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2016 17:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-problem/m-p/1179258#M382416</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2016-07-31T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis &amp; Aggr problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-problem/m-p/1179259#M382417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't think it's equivalent (and you also get different results, right?).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2016 20:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Aggr-problem/m-p/1179259#M382417</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-07-31T20:53:40Z</dc:date>
    </item>
  </channel>
</rss>

