<?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: Expression help? Compare last year and this year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795478#M661552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish&lt;/P&gt;&lt;P&gt;Is it possible to make it into one expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2015 10:28:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-26T10:28:22Z</dc:date>
    <item>
      <title>Expression help? Compare last year and this year</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795476#M661550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to count items sold this year(ytd) and count items sold i the same periode last year as this year.&lt;/P&gt;&lt;P&gt;ex. how many sold items from 1. jan 2014 to 26. march 2014 compared to same period this year&lt;/P&gt;&lt;P&gt;So please help med with an expression something like this&lt;/P&gt;&lt;P&gt;Maybe something with last maxDate or create a variable with something like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-365,'DD-MM-YYYY') &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;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vPreviousYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vCurrentYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, sameperiod??&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;items&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 06:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795476#M661550</guid>
      <dc:creator />
      <dc:date>2015-03-26T06:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help? Compare last year and this year</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795477#M661551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For This Year&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year=,Month=,Week=,Date = {"&amp;gt;=$(=YearStart(Today(),0))&amp;lt;=$(=AddYears(Today(),0))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Last Year&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year=,Month=,Week=,Date = {"&amp;gt;=$(=YearStart(Today(),-1))&amp;lt;=$(=AddYears(Today(),-1))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of SUM(Sales), use Count(Items) in your case..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 08:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795477#M661551</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T08:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help? Compare last year and this year</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795478#M661552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish&lt;/P&gt;&lt;P&gt;Is it possible to make it into one expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 10:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795478#M661552</guid>
      <dc:creator />
      <dc:date>2015-03-26T10:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help? Compare last year and this year</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795479#M661553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;='Current Year : ' &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;SUM({&amp;lt;Year=,Month=,Week=,Date = {"&amp;gt;=$(=YearStart(Today(),0))&amp;lt;=$(=AddYears(Today(),0))"}&amp;gt;}Sales)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&amp;amp; CHR(10) &amp;amp; &lt;/P&gt;&lt;P&gt;'Last Year : '&amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;SUM({&amp;lt;Year=,Month=,Week=,Date = {"&amp;gt;=$(=YearStart(Today(),-1))&amp;lt;=$(=AddYears(Today(),-1))"}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 10:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795479#M661553</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T10:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help? Compare last year and this year</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795480#M661555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish&lt;/P&gt;&lt;P&gt;I have to use the expression to make a pie chart, and with your latest reply it doent work?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 11:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795480#M661555</guid>
      <dc:creator />
      <dc:date>2015-03-26T11:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help? Compare last year and this year</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795481#M661556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide sample data or your sample apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 12:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795481#M661556</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T12:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help? Compare last year and this year</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795482#M661557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Not possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 12:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795482#M661557</guid>
      <dc:creator />
      <dc:date>2015-03-26T12:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help? Compare last year and this year</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795483#M661559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK... Best Luck..!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 12:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help-Compare-last-year-and-this-year/m-p/795483#M661559</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T12:09:27Z</dc:date>
    </item>
  </channel>
</rss>

