<?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 Fecha actual y fecha anterior in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287183#M402916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola a todos!&lt;/P&gt;&lt;P&gt;Que funcion puedo utilizar para calcular en grafico de tabla lo siguiente:&lt;/P&gt;&lt;P&gt;En una columna debe ser la suma&amp;nbsp; del mes actual : sum(Cantidad) y&lt;/P&gt;&lt;P&gt;En la otra columna debe ser la suma del mes anterior: sum(Cantidad)&lt;/P&gt;&lt;P&gt;El formato del campo fecha es dd/mm/aaaa&lt;/P&gt;&lt;P&gt;Mil gracias.!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Mar 2017 14:02:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-14T14:02:53Z</dc:date>
    <item>
      <title>Fecha actual y fecha anterior</title>
      <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287183#M402916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola a todos!&lt;/P&gt;&lt;P&gt;Que funcion puedo utilizar para calcular en grafico de tabla lo siguiente:&lt;/P&gt;&lt;P&gt;En una columna debe ser la suma&amp;nbsp; del mes actual : sum(Cantidad) y&lt;/P&gt;&lt;P&gt;En la otra columna debe ser la suma del mes anterior: sum(Cantidad)&lt;/P&gt;&lt;P&gt;El formato del campo fecha es dd/mm/aaaa&lt;/P&gt;&lt;P&gt;Mil gracias.!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287183#M402916</guid>
      <dc:creator />
      <dc:date>2017-03-14T14:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fecha actual y fecha anterior</title>
      <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287184#M402917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hola Carlos,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Puedes utilizar set analysis en tus expresiones.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Por ejemplo para el mes actual seria algo como:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sum({&amp;lt; CampoFecha = {&lt;SPAN style="font-size: 13.3333px;"&gt;"&amp;gt;=$(=Date(MonthStart(Today()),'DD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;/MM/YYYY'))&amp;lt;=$(=Date(MonthEnd(Today()),'DD/MM/YYYY'))"&lt;/SPAN&gt;} &amp;gt;}Cantidad)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Para el mes anterior:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt; CampoFecha = {&lt;SPAN style="font-size: 13.3333px;"&gt;"&amp;gt;=$(=Date(makedate(year(Today()),Month(Today())-1),'DD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;/MM/YYYY'))&amp;lt;=$(=Date(MonthEnd(makedate(year(Today()),Month(Today()-1)),'DD/MM/YYYY'))"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;} &amp;gt;}Cantidad)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Saludos,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Carlos M&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287184#M402917</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2017-03-14T14:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fecha actual y fecha anterior</title>
      <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287185#M402918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mil gracias &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287185#M402918</guid>
      <dc:creator />
      <dc:date>2017-03-14T14:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fecha actual y fecha anterior</title>
      <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287186#M402919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tengo una duda parecida, que no soy capaz de resolver &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He creado el siguiente gráfico de tiempos:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="grafico de tiempos.JPG" class="jive-image image-1" src="/legacyfs/online/156266_grafico de tiempos.JPG" style="height: 197px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Quiero comparar un mes contra el mes anterior y que me sume un derminado campo, si bien lo consigo para Enero 2017, los datos que figuran de Dic 2016 son los de Enero 2017 y no se como referenciarlos a los de su mes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Las expresiones de mis etiquetas son:&lt;/P&gt;&lt;P&gt;Ene. 2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MonthName (SetDateYear (DATE, (Year (DATE))), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dic. 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MonthName (SetDateYear (DATE, (Year (DATE))), -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Las expresiones para mis valores son:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esta me ha cargado por defecto al hacer el gráfico de tiempos:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Para Ene 2016: Correcta aunque no entiendo porque utiliza la función máximo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(if (InMonth (DATE, SetDateYear (DATE, max (total Year (DATE), 0)), 0), [VOLUMEN TRANSACIONES]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Para Dic 2015: Incorrecta xq me coge los datos de Ene 2017&lt;/P&gt;&lt;P&gt;=SUM(if (InMonth (DATE, SetDateYear (DATE, max (total Year (DATE), -1)), 0), [VOLUMEN TRANSACIONES]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;¿Cómo podría resolverlo?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287186#M402919</guid>
      <dc:creator />
      <dc:date>2017-03-14T15:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fecha actual y fecha anterior</title>
      <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287187#M402920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Daniel&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Podrias resolverlo utilizando la misma logica del set anaysis de la pregunta previa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Para comparar años es comun utilizar set analysis en lugar de condiciones if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287187#M402920</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2017-03-14T15:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fecha actual y fecha anterior</title>
      <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287188#M402921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vale hago lo que me comentas y la fórmula queda asi:&lt;/P&gt;&lt;P&gt;En date tengo el Mes y el año: como por ejemplo Jun 16&lt;/P&gt;&lt;P&gt;PARA MES ACTUAL:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;DATE={'&amp;lt;=$(=max(DATE))&amp;gt;=$(=addmonths(max(DATE),0))'} &amp;gt;} VOLUMEN TRANSACIONES)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PARA MES ANTERIOR:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;DATE={'&amp;lt;=$(=max(DATE))&amp;gt;=$(=addmonths(max(DATE),-1))'} &amp;gt;} VOLUMEN TRANSACIONES)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pero me devuelve todo 0. ¿Cómo puedo solucionarlo?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muchisimas gracias por tu ayuda.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 16:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287188#M402921</guid>
      <dc:creator />
      <dc:date>2017-03-14T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fecha actual y fecha anterior</title>
      <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287189#M402922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;También me devuelve 0.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PERIODO_FE : contiene datos asi: 201612, 201701, 201702, 201703.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[VALOR FE KILO]&lt;/SPAN&gt;: cantidades a sumar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;en este caso requiero sumar el mes actual vs. el anterior &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ej: 201612 vs. 201701&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;lo tengo asi pero me devuelve 0&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;PERIODO_FE={'&amp;lt;=$(=max(DATE))&amp;gt;=$(=addmonths(max(DATE),-1))'} &amp;gt;} [VALOR FE KILO])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tengo algo malo?&lt;/P&gt;&lt;P&gt;gracias.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 16:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287189#M402922</guid>
      <dc:creator />
      <dc:date>2017-03-14T16:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fecha actual y fecha anterior</title>
      <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287190#M402923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;La formula que utilice antes es teniendo un formato fecha de DD/MM/YYYY, para los ejemplos que me comentan seria utilizando formato MMM YY, y para ti Carlos YYYYMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt; CampoFecha = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;"&amp;gt;=$(=MonthName(MonthStart(Today())&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;))&amp;lt;=$(=MonthName(MonthEnd(Today()))"&lt;/SPAN&gt;} &amp;gt;}Cantidad)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Para el mes anterior:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum({&amp;lt; CampoFecha = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;"&amp;gt;=$(=MonthName(makedate(year(Today()),Month(Today())-1)&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;))&amp;lt;=$(=MonthName(MonthEnd(makedate(year(Today()),Month(Today()-1))))"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;} &amp;gt;}Cantidad)&lt;/SPAN&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;Carlos M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 16:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1287190#M402923</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2017-03-14T16:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fecha actual y fecha anterior</title>
      <link>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1512063#M436673</link>
      <description>&lt;P&gt;Hola Carlos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Después de dar 1000 vueltas, esta fórmula tuya ha sido la única que he conseguido que me funcione para sumar el mes en curso. La del mes anterior no me funciona&lt;/P&gt;&lt;P&gt;Creo que debo tener algún problema con el formato de las fechas, y solo esta ha conseguido que funcione.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;En el script de carga tengo declarada la fecha asi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date (Date#([Fecha], 'DD-MM-YYYY) ) As [Fecha]&amp;nbsp; &amp;nbsp;Esto lo hace solo al cargar una consulta de mysql&lt;/P&gt;&lt;P&gt;En definitiva quiero un cuadro dashboard que no tiene intervención de la gente, y que debe dar sumas acumuladas del mes en curso y del día de ayer&lt;/P&gt;&lt;P&gt;Como podría hacer lo mismo pero para sumar el día de ayer ?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 09:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fecha-actual-y-fecha-anterior/m-p/1512063#M436673</guid>
      <dc:creator>hutchinsonbss</dc:creator>
      <dc:date>2018-11-26T09:44:05Z</dc:date>
    </item>
  </channel>
</rss>

