<?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: compare current vs previous sales by month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501898#M187495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just go to the variable and but equal sign before the expression, so it should be =&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Year)-1 instead of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Year)-1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Nov 2013 23:28:13 GMT</pubDate>
    <dc:creator>Yousef_Amarneh</dc:creator>
    <dc:date>2013-11-10T23:28:13Z</dc:date>
    <item>
      <title>compare current vs previous sales by month</title>
      <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501894#M187491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can compare current vs previous sales by giving the current year in selection and the month&lt;/P&gt;&lt;P&gt;and return me in a chart the sales for the month of the current year and the month for the previous year.&lt;/P&gt;&lt;P&gt;I have created a variable for the previous year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vPreviousYear=(Year)-1&lt;/P&gt;&lt;P&gt;and in the expression i give the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;YEAR={'$(vPreviousYear)'},MONTH_ID=&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and returns me&amp;nbsp; 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 15:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501894#M187491</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2013-11-10T15:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: compare current vs previous sales by month</title>
      <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501895#M187492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Below:&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: 12.727272033691406px;"&gt;=Sum({1&amp;lt;YEAR={"$(=Max(YEAR)-1)"},MONTH_ID=&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: 12.727272033691406px;"&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: 12.727272033691406px;"&gt;If you selected the YEAR value 2013, the data for 2012 was greyed out. SO you need to put {1} to ignore the current selections.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 15:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501895#M187492</guid>
      <dc:creator />
      <dc:date>2013-11-10T15:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: compare current vs previous sales by month</title>
      <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501896#M187493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It returns me wrong sales. Very big amounts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 16:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501896#M187493</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2013-11-10T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: compare current vs previous sales by month</title>
      <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501897#M187494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post sample qvw or some test data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 16:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501897#M187494</guid>
      <dc:creator />
      <dc:date>2013-11-10T16:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: compare current vs previous sales by month</title>
      <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501898#M187495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just go to the variable and but equal sign before the expression, so it should be =&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Year)-1 instead of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Year)-1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 23:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales-by-month/m-p/501898#M187495</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2013-11-10T23:28:13Z</dc:date>
    </item>
  </channel>
</rss>

