<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales/m-p/525159#M689400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Selections&lt;/P&gt;&lt;P&gt;=Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Previous Year&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year=, Month=, Quarter=,Week=,DateDimension={'&amp;gt;=$(=YearStart(Max(DateDimension), -1))&amp;lt;=$(=YearEnd(Max(Date), -1))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression replace DateDimension with your date field name, Year with Year field etc.&amp;nbsp; Year= is used to ignore the selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 07:29:49 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2013-10-25T07:29:49Z</dc:date>
    <item>
      <title>compare current vs previous sales</title>
      <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales/m-p/525158#M689398</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 can i compare the current sales vs previous sales giving only the current year date in the selections and the chart giving me also the previous sale date in the same period and in the same weekday. Also if i give the month compare automatically the sales in the previous year. Is there any set analysis to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 07:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales/m-p/525158#M689398</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2013-10-25T07:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: compare current vs previous sales</title>
      <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales/m-p/525159#M689400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Selections&lt;/P&gt;&lt;P&gt;=Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Previous Year&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year=, Month=, Quarter=,Week=,DateDimension={'&amp;gt;=$(=YearStart(Max(DateDimension), -1))&amp;lt;=$(=YearEnd(Max(Date), -1))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above expression replace DateDimension with your date field name, Year with Year field etc.&amp;nbsp; Year= is used to ignore the selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 07:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales/m-p/525159#M689400</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-25T07:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: compare current vs previous sales</title>
      <link>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales/m-p/525160#M689402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;for previous year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;yearfield={"=$(=only(yearfiled)-1)"},quarterfiled=,monthfield={"=$(=max(monthfiled)-1)"}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if month is in monthnames then use month number function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 07:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-current-vs-previous-sales/m-p/525160#M689402</guid>
      <dc:creator />
      <dc:date>2013-10-25T07:35:58Z</dc:date>
    </item>
  </channel>
</rss>

