<?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: Calculating a Variable from difrentes values of the same dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-a-Variable-from-difrentes-values-of-the-same/m-p/632037#M231915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Prueba a añadir una función al numerador de tu expresión como, por ejemplo:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=&amp;gt;}&lt;SPAN style="color: #800000;"&gt;CXCSaldo&lt;/SPAN&gt;) / (&lt;BR /&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;VentaNeta&lt;/SPAN&gt;)-&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;DevolNeta&lt;/SPAN&gt;))/30.41) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;o&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Only&lt;/STRONG&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=&amp;gt;}&lt;SPAN style="color: #800000;"&gt;CXCSaldo&lt;/SPAN&gt;) / (&lt;BR /&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;VentaNeta&lt;/SPAN&gt;)-&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;DevolNeta&lt;/SPAN&gt;))/30.41) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 09:40:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-26T09:40:15Z</dc:date>
    <item>
      <title>Calculating a Variable from difrentes values of the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-Variable-from-difrentes-values-of-the-same/m-p/632036#M231914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola, estoy creando una grafica de línea para determinar el comportamiento histórico de los Días Cartera de Clientes (CxCDias) en función del tiempo (MesAño). Mi problema es que la expresión para calcular CxCDias esta en función del Saldo CxC de cada periodo mensual entre el Ritmo Diario de Ventas (Ventas menos Devoluciones) del periodo mensual anterior al del SaldoCxC.&lt;/P&gt;&lt;P&gt;La grafica se vería de esta forma:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DiasCxC.jpg" class="jive-image" height="528" src="https://community.qlik.com/legacyfs/online/58788_DiasCxC.jpg" width="758" /&gt;&lt;/P&gt;&lt;P&gt;La expresión que estoy usando para calcular CxCDias es:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=&amp;gt;}&lt;SPAN style="color: #800000;"&gt;CXCSaldo&lt;/SPAN&gt;) / (&lt;BR /&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;VentaNeta&lt;/SPAN&gt;)-&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;DevolNeta&lt;/SPAN&gt;))/30.41) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esto es que ignorando la posible selección de Año y Mes que tenga el usuario en un momento dado, me recupere para cada valor de la dimensión MesAño: El SaldoCxC de ese MesAño y las Ventas del Mes Anterior al MesAño... Sin embargo lo que obtengo es:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Si no esta seleccionado nada o tengo seleccionado un Año:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DiasCxC 1.jpg" class="jive-image" height="454" src="/legacyfs/online/58796_DiasCxC 1.jpg" width="724" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Si además del Año, selecciono un Mes, me regresa solo es el Mes anterior&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DiasCxC 3.jpg" class="jive-image" height="460" src="/legacyfs/online/58797_DiasCxC 3.jpg" width="732" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ahora si uso en la agregación 1-$ en lugar de $, Sin selección alguna o solo el Año seleccionado esta Ok, pero si seleccionan un Mes me da todos los meses, excepto el anterior el seleccionado.... Ver abajo esta seleccionado Feb 2014 y no aparece en la grafica Ene 2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DiasCxC 4.jpg" class="jive-image" height="465" src="/legacyfs/online/58798_DiasCxC 4.jpg" width="719" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;¿Alguna idea de que estoy haciendo mal?....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De antemano gracias por su apoyo...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 22:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-Variable-from-difrentes-values-of-the-same/m-p/632036#M231914</guid>
      <dc:creator>guidog</dc:creator>
      <dc:date>2014-05-13T22:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a Variable from difrentes values of the same dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-Variable-from-difrentes-values-of-the-same/m-p/632037#M231915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Prueba a añadir una función al numerador de tu expresión como, por ejemplo:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=&amp;gt;}&lt;SPAN style="color: #800000;"&gt;CXCSaldo&lt;/SPAN&gt;) / (&lt;BR /&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;VentaNeta&lt;/SPAN&gt;)-&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;DevolNeta&lt;/SPAN&gt;))/30.41) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;o&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Only&lt;/STRONG&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=&amp;gt;}&lt;SPAN style="color: #800000;"&gt;CXCSaldo&lt;/SPAN&gt;) / (&lt;BR /&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;VentaNeta&lt;/SPAN&gt;)-&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Año&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Mes&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;MesAño&lt;/SPAN&gt;={'$(=MonthName(AddMonths(FechaOperacion,-1)))'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;DevolNeta&lt;/SPAN&gt;))/30.41) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 09:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-Variable-from-difrentes-values-of-the-same/m-p/632037#M231915</guid>
      <dc:creator />
      <dc:date>2014-09-26T09:40:15Z</dc:date>
    </item>
  </channel>
</rss>

