<?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: Date comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803138#M283555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, maybe this then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;date={"&amp;lt;=$(=makedate(2011,&amp;nbsp; month(max(date)), day(max(date)) ))"}&amp;gt;}something)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 18:23:12 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-11-10T18:23:12Z</dc:date>
    <item>
      <title>Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803135#M283552</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;I need to compare the max date of max year (Done), with the same day&amp;amp;month of year = 2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i mean:&lt;/P&gt;&lt;P&gt;max date = 10/11/2014&lt;/P&gt;&lt;P&gt;sum(date={"&amp;lt;=$(=max(date))"}something) //Year of 2014&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;date={"&amp;lt;=$(=max(date))"}, year={2011}&lt;/SPAN&gt;&amp;gt;}something)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesnt work.Because, the max date of second expression are different of month 11 and day 10.&lt;/P&gt;&lt;P&gt;I need to compare the historic in the same day. Sum of something in 10/11 in 2011 and 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody know how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803135#M283552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-10T17:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803136#M283553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try using the addyears function:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(date={"&amp;lt;=$(=max(date))"}something) &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.63636302948px; font-family: inherit;"&gt;date={"&amp;lt;=$(=&lt;STRONG&gt;addyears(max(date),-3))&lt;/STRONG&gt;"}&lt;/SPAN&gt;&amp;gt;}something)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803136#M283553</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-10T17:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803137#M283554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer Gysbert!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant do this.&lt;/P&gt;&lt;P&gt;Because, my max year can be 2005, 2006, 2010, 2014, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i need to do this dynamic.&lt;/P&gt;&lt;P&gt;Is possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803137#M283554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-10T18:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803138#M283555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, maybe this then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;date={"&amp;lt;=$(=makedate(2011,&amp;nbsp; month(max(date)), day(max(date)) ))"}&amp;gt;}something)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803138#M283555</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-10T18:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803139#M283556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;date={'$(=Max(date))'}&amp;gt;} something)/Sum({$&amp;lt;date={'$(=SetDateYear(Max(date),2011))'}&amp;gt;} something)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_141518_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70893_QlikCommunity_Thread_141518_Pic1.JPG.jpg" style="width: 620px; height: 184px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_141518_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70894_QlikCommunity_Thread_141518_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_141518_Pic3.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70898_QlikCommunity_Thread_141518_Pic3.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 22:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison/m-p/803139#M283556</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-10T22:03:53Z</dc:date>
    </item>
  </channel>
</rss>

