<?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 aggr with two conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353050#M1174075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think its possible... try to put the variable in a text object to check if the format is different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 17:58:10 GMT</pubDate>
    <dc:creator>cesaraccardi</dc:creator>
    <dc:date>2012-05-16T17:58:10Z</dc:date>
    <item>
      <title>aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353047#M1174069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i will be pleased if someone could help me with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Aggr(if(count(DEAL_EXTERNALS.deal_externals_id) &amp;gt; 1 and USERS.user_created = Mes_AntAnterior,1,0),USERS.email))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;up to here:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Aggr(if(count(DEAL_EXTERNALS.deal_externals_id) &amp;gt; 1 ,1,0),USERS.email))&lt;/STRONG&gt; the values are ok but,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when i add the second condition "&lt;STRONG&gt;and USERS.user_created = Mes_AntAnterior&lt;/STRONG&gt;" the values get wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below the definitions of both:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mes_AntAnterior&lt;/STRONG&gt;= month(addmonths(today(),-2)) &amp;amp; '-' &amp;amp; year(addmonths(today(),-2))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USERS.user_created&lt;/STRONG&gt; = month(today()) &amp;amp; '-' &amp;amp; year(today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; text-decoration: underline;"&gt;workaround:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Aggr(if(count(DEAL_EXTERNALS.deal_externals_id) &amp;gt; 1 and USERS.created &amp;gt;= Today()-60,1,0),USERS.email))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;USERS.created&lt;/STRONG&gt; has this kind of format 40493, 40494, 40497.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think the problem is with the definitions of Mes_AntAnterior and USERS.user_created. How can i change this definitions to solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 18:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353047#M1174069</guid>
      <dc:creator />
      <dc:date>2012-05-15T18:32:15Z</dc:date>
    </item>
    <item>
      <title>aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353048#M1174071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi gerardo, you can change the variable type in Document Properties dialog =&amp;gt; Number sheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 20:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353048#M1174071</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2012-05-15T20:59:32Z</dc:date>
    </item>
    <item>
      <title>aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353049#M1174073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do you think because of that i couldn't compare this: &lt;STRONG&gt;USERS.user_created = Mes_AntAnterior?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 12:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353049#M1174073</guid>
      <dc:creator />
      <dc:date>2012-05-16T12:05:08Z</dc:date>
    </item>
    <item>
      <title>aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353050#M1174075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think its possible... try to put the variable in a text object to check if the format is different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 17:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353050#M1174075</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2012-05-16T17:58:10Z</dc:date>
    </item>
    <item>
      <title>aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353051#M1174078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerar! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mes_AntAnterior es un campo o una variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Si es un campo y no está en la misma tabla que USERS.user_created muchas veces es causa de que un Sum(If... no funcione.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Si es una variable (cosa que creo que es lo más lógico que sea), usá $(Mes_AntAnterior) en lugar de Mes_AntAnterior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Por otro lado, como más importante, es qué formato tienen cada uno. Cuando indicás las definiciones en tu consulta los dos dependen de Today(), ninguno de un dato de campo... Dónde los definís? en el script (con let??) o en el panel de variables?? Disculpá mi falta de comprensión.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353051#M1174078</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-05-17T16:56:24Z</dc:date>
    </item>
    <item>
      <title>aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353052#M1174080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Sebastian! gracias por la respuesta...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; estoy definiendo &lt;STRONG&gt;Mes_AntAnterior &lt;/STRONG&gt;en el script con let, no asi el &lt;STRONG&gt;USERS.user_created que es el dato de un campo.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Voy a probar lo que me decis a ver que onda....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;saludos!&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 17:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353052#M1174080</guid>
      <dc:creator />
      <dc:date>2012-05-17T17:38:00Z</dc:date>
    </item>
    <item>
      <title>aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353053#M1174082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Entonces Mes_AntAnterior es una variable. Si hacés un cuadro de texto con =Mes_AntAnterior, qué te muestra?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Por otro lado, te recomiendo sum en lugar de count... va más rápido&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 17:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353053#M1174082</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-05-18T17:54:57Z</dc:date>
    </item>
    <item>
      <title>aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353054#M1174083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Y? Funcionó?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 01:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353054#M1174083</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-05-21T01:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353055#M1174084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Sebastian! Perdón por no contestar antes. No pude probarlo todavía, estoy con unos quilombos en el servidor de correo que no me deja avanzar con qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Sebastian Pereira &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Enviado el: domingo, 20 de mayo de 2012 10:34 p.m.&lt;/P&gt;&lt;P&gt;Para: Pauza, Gerardo&lt;/P&gt;&lt;P&gt;Asunto: &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: aggr with two conditions&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;/P&gt;&lt;P&gt;QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: aggr with two conditions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by Sebastian Pereira &amp;lt;http://community.qlik.com/people/sebastiandpereira&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/221057#221057&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 13:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353055#M1174084</guid>
      <dc:creator />
      <dc:date>2012-05-23T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353056#M1174085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cómo van esos temas Gerar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 02:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-two-conditions/m-p/353056#M1174085</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-06-20T02:55:22Z</dc:date>
    </item>
  </channel>
</rss>

