<?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: VENTAS DEL SEMESTRE ANTERIOR in Español</title>
    <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220934#M12212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Intento obtener la suma de las ventas del semestre anterior al actual. Si estamos en Diciembre, quiero obtener el total de las ventas de Junio + Julio + Agosto + Septiembre + octubre + Noviembre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 20:16:30 GMT</pubDate>
    <dc:creator>walterlh</dc:creator>
    <dc:date>2016-12-20T20:16:30Z</dc:date>
    <item>
      <title>VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220926#M12204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola amigos de Qlik! Estoy intentando hacer un informe donde se califican a los clientes dependiendo de ciertos parámetros establecidos. Uno de ellos es el importe que han comprado en el mes actual, comparado con un importe que se obtiene del promedio de las ventas del semestre anterior.&lt;BR /&gt; Para ello debo hacer un promedio de todas las ventas del semestre anterior al seleccionado, respecto de la cantidad de ventas que hubo. Por ejemplo:&lt;/P&gt;&lt;P&gt;JUN:&amp;nbsp;&amp;nbsp;&amp;nbsp; 10000&lt;/P&gt;&lt;P&gt;JUL:&amp;nbsp;&amp;nbsp;&amp;nbsp; 15000&lt;/P&gt;&lt;P&gt;AGO:&amp;nbsp;&amp;nbsp;&amp;nbsp; 13000&lt;/P&gt;&lt;P&gt;SEP:&amp;nbsp;&amp;nbsp;&amp;nbsp; 14000 &lt;/P&gt;&lt;P&gt;OCT:&amp;nbsp;&amp;nbsp;&amp;nbsp; 15000&lt;/P&gt;&lt;P&gt;NOV:&amp;nbsp;&amp;nbsp;&amp;nbsp; 18000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total de las ventas del semestre = 85000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;En éste semestre se hicieron un total de &lt;STRONG&gt;1500&lt;/STRONG&gt; facturas que lo obtengo de &lt;STRONG&gt;Count(DISTINCT id_venta)&lt;/STRONG&gt;, por lo tanto el monto con el que se compara las compras de cada cliente va a ser &lt;STRONG&gt;56,66.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Lo he logrado mediante Set Analisys utilizando:&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-1)}&amp;gt;}Ventas) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-2)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-3)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-4)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-5)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-6)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Ventas&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;) /&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-1)}&amp;gt;}id_venta) +&lt;/P&gt;&lt;P&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-2)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;id_venta&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-3)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;id_venta&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-4)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;id_venta&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-5)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;id_venta&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-6)}&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;id_venta&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;Pero al momento de utilizarlo para compararlo con la venta actual me da valores incorrectos. &lt;/P&gt;&lt;P&gt; En un objeto de texto muestra el resultado correcto, pero en una tabla simple o pivot no. He intentado hacer una variable con éste cálculo pero no funciona, y utilizando SET desde el Script también me&amp;nbsp; da error.&lt;/P&gt;&lt;P&gt;Lo que quiero es saber si puedo calcularlo de otra manera desde el Script para que me quede un numero fijo (56,66) y pueda compararlo con cada total de venta por cliente, del mes actual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Imagen1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145892_Imagen1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 12:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220926#M12204</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-07T12:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220927#M12205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Walter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inténtalo de la siguiente forma:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr( TU_FÓRMULA, DIMENSIONES ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Entiendo que tu única dimensión en la pivot es clientes, no?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Si añades más dimensiones, deberás de añadirlas en el AGGR().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 13:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220927#M12205</guid>
      <dc:creator>alexis_garcia</dc:creator>
      <dc:date>2016-12-07T13:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220928#M12206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Walter como estas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Puede ser mas perfomante hacer estas mismas agrupaciones pero en el script, utlizando la sentencia Group by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/23003" style="font-size: 10pt;" title="https://community.qlikview.com/thread/23003"&gt;https://community.qlikview.com/thread/23003&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 14:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220928#M12206</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2016-12-09T14:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220929#M12207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hola Alexis, gracias por tu respuesta. Habría probado eso, porque siempre resolví este tipo de cuestiones con Aggr(). Pero en éste caso en particular me da null(). Yo creo que debe ser por $ la selección actual.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Ésto uso:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sum(Aggr(&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-1)}&amp;gt;}Ventas) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-2)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-3)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-4)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-5)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-6)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Ventas&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) /&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-1)}&amp;gt;}id_venta) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-2)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;id_venta&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-3)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;id_venta&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-4)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;id_venta&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-5)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;id_venta&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT{$&amp;lt;MesVta={$(=Only(MesVta)-6)}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;id_venta&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),Clientes))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220929#M12207</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-12T12:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220930#M12208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fernando .. éste script uso y de entrada me remarca que no es una sintaxis válida&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;id_venta,&lt;/P&gt;&lt;P&gt;id_cliente,&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-1)}&amp;gt;} ventas) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-2)}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-3)}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-4)}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-5)}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-6)}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;ventas&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;) as venta_semestre&lt;/P&gt;&lt;P&gt;Resident ventas_detalle&lt;/P&gt;&lt;P&gt;Group By id_cliente;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220930#M12208</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-12T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220931#M12209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Buen Día,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;En tu Script el Group By debe de ir por los campos : &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;id_cliente&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;id_venta&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;id_venta,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;id_cliente,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-1)}&amp;gt;} ventas) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-2)}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-3)}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-4)}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-5)}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ventas&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;MesVta={$(=Only(MesVta)-6)}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ventas&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) as venta_semestre&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident ventas_detalle&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group By id_cliente,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;id_venta&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Como regla en el Group By debes de agregar los campos que no estas calculando sobre el mismo Script en tu caso el campo &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;venta_semestre&lt;/SPAN&gt; si es un campo calculado, mientras que &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;id_venta&lt;/SPAN&gt; y &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;id_cliente&lt;/SPAN&gt; solo los estas leyendo.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Saludos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 15:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220931#M12209</guid>
      <dc:creator>bertinabel</dc:creator>
      <dc:date>2016-12-20T15:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220932#M12210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Bertin, agradezco que se tome el tiempo de leer mi pregunta. Probé su sugerencia y parece que el editor no lo admite. Desde el primer "Sum()" me remarca el código en rojo advirtiendo que la sintaxis no es correcta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="asdasadsa.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147194_asdasadsa.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 18:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220932#M12210</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-20T18:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220933#M12211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Que tal Walter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No me había percatado de que tenias Set Analysis en tu Script, esto no se puede hacer en el Script no puedes meter Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;La verdad no logro entender completamente que es lo que deseas obtener. Hay posibilidad de que puedas subir tu qvd o qvw para tener una idea más clara de cual es tu problema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De inicio creo que tu set analysis que indicas al inicio se puede reducir a lo siguiente:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Sum ({$ &amp;lt;MesVta = {"&amp;gt;=$ (= AddMonths (MesVta, -6) &amp;lt;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$ (= AddMonths (MesVta, -1)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; "&lt;/SPAN&gt;}&amp;gt;} Sales) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Count (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$ &amp;lt;MesVta = {"&amp;gt;=$ (= AddMonths (MesVta, -6) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$ (= AddMonths (MesVta, -1)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; "&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;}&amp;gt;} &lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DISTINCT &lt;/SPAN&gt; id_venta) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220933#M12211</guid>
      <dc:creator>bertinabel</dc:creator>
      <dc:date>2016-12-20T20:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220934#M12212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Intento obtener la suma de las ventas del semestre anterior al actual. Si estamos en Diciembre, quiero obtener el total de las ventas de Junio + Julio + Agosto + Septiembre + octubre + Noviembre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220934#M12212</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-20T20:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220935#M12213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Walter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ya probaste con el Set&amp;nbsp; Analysis que te puse en mi respuesta anterior?&lt;/P&gt;&lt;P&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; font-size: 13px;"&gt;Sum ({$ &amp;lt;MesVta = {"&amp;gt;=$ (= AddMonths (MesVta, -6) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$ (= AddMonths (MesVta, -1)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; "&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Saludos&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 22:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220935#M12213</guid>
      <dc:creator>bertinabel</dc:creator>
      <dc:date>2016-12-20T22:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220936#M12214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lo probé, pero al elegir el mes me queda en 0. Ya lo había probado con &lt;SPAN style="font-size: 13.3333px;"&gt;Sum( {&amp;lt;MesVta={"&amp;gt;=$(=only(MesVta)-6)"}&amp;gt;*&amp;lt;FechaComprobante={"&amp;lt;=$(=max(MesVta))"}&amp;gt; }&amp;nbsp;&amp;nbsp; Ventas)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Incluso intenté con crear dos variables Max(MesVta) y Max(MesVta)-6 y tampoco me arroja valores.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 18:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220936#M12214</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-21T18:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220937#M12215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Walter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; El Set Analysis va a depender mucho de el formato que tenga tu campo de "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;MesVta&lt;/SPAN&gt;" si esta como texto y no como fecha va a ser muy difícil lograr lo que comentas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agregue un ejemplo donde un campo que trae la fecha de venta en formato texto la convierto en formato fecha desde el script y despues hago una tabla simple como la que quieres obtener.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Espero te funcione.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 19:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220937#M12215</guid>
      <dc:creator>bertinabel</dc:creator>
      <dc:date>2016-12-21T19:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220938#M12216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bertin voy a probar, mi campo VtaMes es numérico. Se obtiene de &lt;STRONG&gt;Year(Fecha)* 12 + Month(Fecha). &lt;/STRONG&gt;Igualmente probé con tipo fecha, en mi campo &lt;STRONG&gt;Mes&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ejemplo de MesVta:&lt;/P&gt;&lt;P&gt;Enero = 2016 * 12 + 1 = &lt;STRONG&gt;24193&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Febrero = 2016 * 12 + 2 = &lt;STRONG&gt;24194&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Marzo = 2016 * 12 +3 = &lt;STRONG&gt;24195&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 20:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220938#M12216</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-21T20:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220939#M12217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Walter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Si tu campo ya es numerico, entonces no deberias de tener mucho problema, el Set Analysis quedaria de la siguiente forma:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MesVta&lt;/SPAN&gt;=, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MesVta&lt;/SPAN&gt;={"&amp;gt;=$(=Floor(AddMonths(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MesVta&lt;/SPAN&gt;),-6)))&amp;lt;=$(=Floor(Max(AddMonths(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MesVta&lt;/SPAN&gt;,-1))))"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sales&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;Saludos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 22:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220939#M12217</guid>
      <dc:creator>bertinabel</dc:creator>
      <dc:date>2016-12-21T22:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220940#M12218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bertin, no puedes usar una function de tipo fecha "Addmonths" con un campo de tipo numerico. MesVta es del tipo Integer.&lt;/P&gt;&lt;P&gt;El set analysis deberia quedar de la siguiente forma:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt; MesVta={"&amp;gt;=$(=max(MesVta)-6)&amp;lt;=$(=max(MesVta)-1)} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 11:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220940#M12218</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2016-12-22T11:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220941#M12219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Intento con esa y me da valores 0 en todos los registros seleccionando MesVta. Hice unas modificaciones y funcionó el set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;MesVta= ,MesVta={"&amp;gt;=$(=MesVta -6)&amp;lt;=$(=MesVta -1)"}&amp;gt;} Ventas)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;De igual manera, cuando quiero totalizarlo en un cuadro de texto con Aggr(), me muestra un resultado diferente:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum( Total&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;MesVta= ,MesVta={"&amp;gt;=$(=MesVta -6)&amp;lt;=$(=MesVta -1)"}&amp;gt;} NetoComprobante)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Clientes))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coloco el Set Analysis en la tabla simple (Sin el &lt;STRONG&gt;Total&lt;/STRONG&gt;) y veo que no suma la venta semestral de los clientes que no tienen ventas en el MesVta actual, o el &lt;SPAN style="font-size: 13.3333px;"&gt;MesVta&lt;/SPAN&gt; que se haya seleccionado.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 11:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220941#M12219</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-22T11:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220942#M12220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Juan, tu Set Analysis también me funcionó a la perfección pero sigo teniendo el inconveniente de que al totalizarlo con Aggr() no muestra el mismo total de la tabla simple, porque no suma los registro de los clientes que no tienen compra en el MesVta actual, o el MesVta seleccionado.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ayuda.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147400_ayuda.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 12:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220942#M12220</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-22T12:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220943#M12221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Walter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Intenta cambiar el signo $ del Set Analysis por 1 para que te considere todos los Clientes existentes, quedando de la siguiente forma:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;aggr (&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum ({1 &amp;lt;= MesVta, MesVta = { "&amp;gt; = $ (= MesVta -6) &amp;lt;= $ (= MesVta -1)"}&amp;gt;} NetoComprobante)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;, Clientes))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 15:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220943#M12221</guid>
      <dc:creator>bertinabel</dc:creator>
      <dc:date>2016-12-22T15:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220944#M12222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tienes razón lo que pasa es que yo uso para las fechas un valor numérico pero este valor numérico lo obtengo con la función Floor(), es totalmente diferente al valor entero de la forma en que lo esta obteniendo walter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos y gracias por la observación&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 15:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220944#M12222</guid>
      <dc:creator>bertinabel</dc:creator>
      <dc:date>2016-12-22T15:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: VENTAS DEL SEMESTRE ANTERIOR</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220945#M12223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arroja el acumulado de las ventas sin tener en cuenta la restricción del semestre. Y solamente en los clientes que tuvieron ventas en el MesVta seleccionado.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 21:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/VENTAS-DEL-SEMESTRE-ANTERIOR/m-p/1220945#M12223</guid>
      <dc:creator>walterlh</dc:creator>
      <dc:date>2016-12-22T21:22:16Z</dc:date>
    </item>
  </channel>
</rss>

