<?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: Comparison with the previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623017#M544714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Label is not paying attention to your Selection Set. It's just using the dollar sign expansion. That's why it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your definition, you are defining the Selection Set as the current set using $, meaning that it's possible the Selection Set ( List Boxes highlighted green) references the current MbrName_Anio. If that's the case, you are eliminating MbrName_Anio-1 by selecting MbrName_Anio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get around this by using &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;({1 &amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; 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; color: #800000;"&gt;[MbrName_Anio]&lt;/SPAN&gt;= {&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(=Max(MbrName_Anio))&lt;/EM&gt;&lt;/STRONG&gt;} &amp;gt; } &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Importe real]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&amp;nbsp; or using an additional modifier to tell the Set Analysis Set to ignore a selection you've made in another QlikView Object ( List Box maybe?).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Apr 2014 03:30:23 GMT</pubDate>
    <dc:creator>trey_bayne</dc:creator>
    <dc:date>2014-04-27T03:30:23Z</dc:date>
    <item>
      <title>Comparison with the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623013#M544710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I want to compare in a simple table the amount for the year I have selected with the preceding year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am making a mistake in the definition of the expression for the preeding year because the table does not display any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I´m doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR THE YEAR SELECTED: It works&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;LABEL:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=Max(MbrName_Anio)) &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DEFINITION:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; ({$ &amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #800000;"&gt;[MbrName_Anio]&lt;/SPAN&gt;= {&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(=Max(MbrName_Anio))&lt;/EM&gt;&lt;/STRONG&gt;} &amp;gt; } &lt;SPAN style="color: #800000;"&gt;[Importe real]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FOR THE PRECEDING YEAR: The Label works but the Expression don´t&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;LABEL:It works&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=Max(MbrName_Anio)-1)&amp;nbsp; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DEFINITION: It doesn´t work&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ({$ &amp;lt;&lt;SPAN style="color: #800000;"&gt;[MbrName_Anio]&lt;/SPAN&gt;= {&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(=Max(MbrName_Anio)-1)&lt;/EM&gt;&lt;/STRONG&gt;} &amp;gt; } &lt;SPAN style="color: #800000;"&gt;[Importe real]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance for your answers!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 19:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623013#M544710</guid>
      <dc:creator />
      <dc:date>2014-04-26T19:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623014#M544711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically you´re doing right.&lt;/P&gt;&lt;P&gt;Is it possible to post a app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 19:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623014#M544711</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-04-26T19:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623015#M544712</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;move your -1 inside brackets, like: {$(=max(MbrName_Anio -1))}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 19:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623015#M544712</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2014-04-26T19:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623016#M544713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe MbrName_Anio is non numeric? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 19:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623016#M544713</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2014-04-26T19:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623017#M544714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Label is not paying attention to your Selection Set. It's just using the dollar sign expansion. That's why it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your definition, you are defining the Selection Set as the current set using $, meaning that it's possible the Selection Set ( List Boxes highlighted green) references the current MbrName_Anio. If that's the case, you are eliminating MbrName_Anio-1 by selecting MbrName_Anio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get around this by using &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;({1 &amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; 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; color: #800000;"&gt;[MbrName_Anio]&lt;/SPAN&gt;= {&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(=Max(MbrName_Anio))&lt;/EM&gt;&lt;/STRONG&gt;} &amp;gt; } &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Importe real]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&amp;nbsp; or using an additional modifier to tell the Set Analysis Set to ignore a selection you've made in another QlikView Object ( List Box maybe?).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 03:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623017#M544714</guid>
      <dc:creator>trey_bayne</dc:creator>
      <dc:date>2014-04-27T03:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623018#M544715</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;ru using any set aggr function like sum,count avg ...beacause set doesn't work without them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum&amp;nbsp; &lt;/STRONG&gt;({$ &amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[MbrName_Anio]&lt;/SPAN&gt;= {&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(=Max(MbrName_Anio)-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;"&lt;/EM&gt;} &amp;gt; } &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Importe real]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if you attached sample file then that would be great to help you&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 03:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623018#M544715</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-04-27T03:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623019#M544716</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;Try several alternatives.&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;1. Write &lt;STRONG style="font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(=Max(MbrName_Anio)-1)&lt;/EM&gt;&lt;/STRONG&gt; in single quote ' '&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[MbrName_Anio]&lt;/SPAN&gt;= {'&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(=Max(MbrName_Anio)-1)'&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Importe real]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;store value of &lt;STRONG style="font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(=Max(MbrName_Anio)-1)&lt;/EM&gt;&lt;/STRONG&gt; expression in variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Like create variable varPreviousYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and value should be &lt;STRONG style="font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;=Max(MbrName_Anio)-1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then use that variable in your set analysis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[MbrName_Anio]&lt;/SPAN&gt;= {"=varPreviousYear"}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Importe real]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2014 06:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparison-with-the-previous-year/m-p/623019#M544716</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-04-27T06:17:49Z</dc:date>
    </item>
  </channel>
</rss>

