<?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 Date Comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/226941#M79096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i would like to calculate for example the sales for a specific day using set analysis.&lt;/P&gt;&lt;P&gt;For the current year i use this expresion&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year = {$(=max(YEAR))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} sales_value)&lt;/P&gt;&lt;P&gt;For the previous year i use&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Day = {$(=Day(setdateyear(date_sales_field, 2009)-367))}&amp;gt;} sales_value) but doens't work.&lt;/P&gt;&lt;P&gt;When someone select a certain day i want to calculate the sales for the day in the present year and in the previous year. But there is an issue there: for example the sales of 18 January 2010 most be compared with the sales of 19 January 2009 why? because is the same weekday.&lt;/P&gt;&lt;P&gt;Thanks in advance for any answers.&lt;/P&gt;&lt;P&gt;ANDRE GOMES&lt;/P&gt;&lt;P&gt;DATA ANALYST - AGRILOJA - PORTUGAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2010 17:19:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-29T17:19:39Z</dc:date>
    <item>
      <title>Date Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/226941#M79096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i would like to calculate for example the sales for a specific day using set analysis.&lt;/P&gt;&lt;P&gt;For the current year i use this expresion&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year = {$(=max(YEAR))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} sales_value)&lt;/P&gt;&lt;P&gt;For the previous year i use&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Day = {$(=Day(setdateyear(date_sales_field, 2009)-367))}&amp;gt;} sales_value) but doens't work.&lt;/P&gt;&lt;P&gt;When someone select a certain day i want to calculate the sales for the day in the present year and in the previous year. But there is an issue there: for example the sales of 18 January 2010 most be compared with the sales of 19 January 2009 why? because is the same weekday.&lt;/P&gt;&lt;P&gt;Thanks in advance for any answers.&lt;/P&gt;&lt;P&gt;ANDRE GOMES&lt;/P&gt;&lt;P&gt;DATA ANALYST - AGRILOJA - PORTUGAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 17:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Comparison/m-p/226941#M79096</guid>
      <dc:creator />
      <dc:date>2010-01-29T17:19:39Z</dc:date>
    </item>
  </channel>
</rss>

