<?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 Working with dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Working-with-dates/m-p/890753#M654268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I have a problem with &lt;STRONG&gt;dates&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;This is what I want to achieve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have all the dates of the last three years;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I choose a date range selecting the dates that i want to analyze (i.e: from the 1st of January to the 31 of July 2015);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qlik returns the revenue made in the selection, and in the same selected period but of an year ago( so, from the 1st of January to the&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31 of July 2014);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 14:06:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-06T14:06:32Z</dc:date>
    <item>
      <title>Working with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-dates/m-p/890753#M654268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I have a problem with &lt;STRONG&gt;dates&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;This is what I want to achieve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have all the dates of the last three years;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I choose a date range selecting the dates that i want to analyze (i.e: from the 1st of January to the 31 of July 2015);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qlik returns the revenue made in the selection, and in the same selected period but of an year ago( so, from the 1st of January to the&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31 of July 2014);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 14:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-dates/m-p/890753#M654268</guid>
      <dc:creator />
      <dc:date>2015-07-06T14:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Working with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-dates/m-p/890754#M654271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patrizio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check my example. To achive your requirement you have to use set analysis in your expressions where you want to show previous period. It could be smth like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;Year={$(=max(Year)-1)}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrei Kaliahin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 07:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-dates/m-p/890754#M654271</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2015-07-07T07:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Working with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-dates/m-p/890755#M654274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u please explain how do u want. if u select 2015 then what would u want to see the data of 2015 or 2014.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 07:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-dates/m-p/890755#M654274</guid>
      <dc:creator />
      <dc:date>2015-07-07T07:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Working with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-dates/m-p/890756#M654276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is simple if you create a set of calendar fields, such as in a master calendar. In its simplest form, do this when you load from the source that contains the date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date) As Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date) As Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Now if you make selections on Month, you can write expressions like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({&amp;lt;Year = {"$(=Max(Year))"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({&amp;lt;Year = {"$(=Max(Year)-1)"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to view the values for the month for the this year and for last year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 07:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-dates/m-p/890756#M654276</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-07T07:17:45Z</dc:date>
    </item>
  </channel>
</rss>

