<?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: Date range from last year with setAnalysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112401#M600968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alejandra, la expresion que puse le faltaban 2 parentesis (No se copio con el formato correcto).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;La expresion funciona bien. Ten en cuenta que si estas seleccionando el anio actual, y en el set analysis quieres mostrar para el anio anterior, entonces falta excluir las selecciones para que muestre los datos correctos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esta expresion funciona en tu dashboard:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{$&amp;lt;Anio=, Date_1=,&amp;nbsp; Date_1={"&amp;gt;=$(=Date(AddMonths(Min(Date_1),-12),'DD-MM-YYYY')) &amp;lt;=$(=Date(AddMonths(Max(Date_1),-12),'DD-MM-YYYY'))"}&amp;gt;} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PrimaNeta_EQ)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Carlos M&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2018 15:41:19 GMT</pubDate>
    <dc:creator>CarlosAMonroy</dc:creator>
    <dc:date>2018-10-03T15:41:19Z</dc:date>
    <item>
      <title>Date range from last year with setAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112396#M600963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I have been having some trouble with a date range for QlikView. I already have a date range selector that works great, but when it's the time for using setAnalysis and get the same range in the prior year I just can't make it when using the selector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean, this works when I use the list boxes of my mastercalendar but not for my date picker ranges&lt;/P&gt;&lt;P&gt;Anio = Year and PrimaNeta_EQ = Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1537971582260139" jivemacro_uid="_1537971582260139"&gt;
&lt;P&gt;Sum({$&amp;lt;Anio={$(=Anio-1)}&amp;gt;}PrimaNeta_EQ)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I left you here the thing I'm working on, so you can better idea of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112396#M600963</guid>
      <dc:creator>alelopezp</dc:creator>
      <dc:date>2018-09-26T14:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date range from last year with setAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112397#M600964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the expression works in your data model. see below i changed last year expression to yours Sum({$&amp;lt;Anio={$(=Anio-1)}&amp;gt;}PrimaNeta_EQ)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not clear on the issue&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214515_Capture.PNG" style="height: 226px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112397#M600964</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-09-26T15:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date range from last year with setAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112398#M600965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the date pickers for example, from 17/04/2018 to 5/05/2018 it takes the selection of that range, but I also need the same range from last year selection, in other words, the sales from 17/04/2017 to 5/05/2017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use the listboxes to pick full months I have no problem, the problem comes when I select a date range with the selectors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 16:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112398#M600965</guid>
      <dc:creator>alelopezp</dc:creator>
      <dc:date>2018-09-26T16:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date range from last year with setAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112399#M600966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Alejandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Puedes usar el siguiente set analysis. No abri tu archivo, pero por lo que lei, buscas tener la misma expresion del anio actual para el anio anterior basado en tus selecciones, cierto?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hay distintas formas de obtener el resultado que deseas, una de ellas es la siguiente:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Sum({$&amp;lt;Campo_Fecha={&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;"&amp;gt;=$(=AddMonths(Min(Campo_Fecha),-12 &amp;lt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif;"&gt;$(=AddMonths(Max(Campo_Fecha),-12))&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;}&amp;gt;} PrimaNeta_EQ)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;En lugar de usar el campo anio, utiliza tu campo que tenga la fecha completa.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Espero te sirva,&lt;/P&gt;&lt;P&gt;Carlos M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 16:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112399#M600966</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2018-09-26T16:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date range from last year with setAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112400#M600967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Carlos, ya probé el código que me compartiste, pero no obtuve resultados. La suma me dio 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 16:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112400#M600967</guid>
      <dc:creator>alelopezp</dc:creator>
      <dc:date>2018-09-26T16:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date range from last year with setAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112401#M600968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alejandra, la expresion que puse le faltaban 2 parentesis (No se copio con el formato correcto).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;La expresion funciona bien. Ten en cuenta que si estas seleccionando el anio actual, y en el set analysis quieres mostrar para el anio anterior, entonces falta excluir las selecciones para que muestre los datos correctos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esta expresion funciona en tu dashboard:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{$&amp;lt;Anio=, Date_1=,&amp;nbsp; Date_1={"&amp;gt;=$(=Date(AddMonths(Min(Date_1),-12),'DD-MM-YYYY')) &amp;lt;=$(=Date(AddMonths(Max(Date_1),-12),'DD-MM-YYYY'))"}&amp;gt;} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PrimaNeta_EQ)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Carlos M&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 15:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112401#M600968</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2018-10-03T15:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date range from last year with setAnalysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112402#M600969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya la probé y funcionó a la perfección, Muchísimas gracias Carlos!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 14:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-from-last-year-with-setAnalysis/m-p/112402#M600969</guid>
      <dc:creator>alelopezp</dc:creator>
      <dc:date>2018-10-05T14:24:49Z</dc:date>
    </item>
  </channel>
</rss>

