<?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 Two Periods in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-Two-Periods/m-p/507628#M1137409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhupendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to use set analysis. I have written a doc about it:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4951"&gt;http://community.qlik.com/docs/DOC-4951&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that can be helpfull to learn this difficult topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 1st value in 2012:&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Dated ={"&amp;gt;=01/01/2012 &amp;lt;= 31/12/2012"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;The 2nd value in 2013:&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Dated ={"&amp;gt;=01/01/2013 &amp;lt;=31/12/2013"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can also put the dates into variables that will change after some time.&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2013 13:41:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-03T13:41:34Z</dc:date>
    <item>
      <title>Compare Two Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Two-Periods/m-p/507627#M1137408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have historical data and want compare two periods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a example from "01/01/2012" To "31/012/12" compare&amp;nbsp; this with "01/01/2013" To "31/12/2013"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date field(call dated) in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can anyone give me an simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 10:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Two-Periods/m-p/507627#M1137408</guid>
      <dc:creator />
      <dc:date>2013-10-03T10:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Two Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Two-Periods/m-p/507628#M1137409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhupendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to use set analysis. I have written a doc about it:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4951"&gt;http://community.qlik.com/docs/DOC-4951&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that can be helpfull to learn this difficult topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 1st value in 2012:&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Dated ={"&amp;gt;=01/01/2012 &amp;lt;= 31/12/2012"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;The 2nd value in 2013:&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Dated ={"&amp;gt;=01/01/2013 &amp;lt;=31/12/2013"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can also put the dates into variables that will change after some time.&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 13:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Two-Periods/m-p/507628#M1137409</guid>
      <dc:creator />
      <dc:date>2013-10-03T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Two Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Two-Periods/m-p/507629#M1137410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to consider creating a master calendar.&amp;nbsp; This will enable you to make your set analysis much simpler because you can compare just the years. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/387990"&gt;Re: Creating master calendar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 1st value in 2012:&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Year ={2012} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;The 2nd value in 2013:&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Year ={2013} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also get a bit more fancy and have the user select on a Year and automatically select the previous year for comparison:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selected Year&lt;/P&gt;&lt;P&gt;sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pervious Year:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {$(=Max(Year)-1))}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative would be to use Alternate States so the user could select on any date (or combinations of dates) and compare it to any other set of dates.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/181707"&gt;Alternate states - demo&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 22:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Two-Periods/m-p/507629#M1137410</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2013-10-03T22:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Two Periods</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Two-Periods/m-p/507630#M1137411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YES, the master calendar would be far better. And I answered too close to the question (your solution is more powerfull to the user)&lt;/P&gt;&lt;P&gt;Using Alternate State can make the writing of the Set much more complex, especially if you there are many ListBoxes to choose values from.. But it gives the power to the user ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 07:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Two-Periods/m-p/507630#M1137411</guid>
      <dc:creator />
      <dc:date>2013-10-04T07:16:07Z</dc:date>
    </item>
  </channel>
</rss>

