<?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 range across years in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892107#M1015064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, and thanks.&lt;/P&gt;&lt;P&gt;Sorry, but I do not understand what you're saying..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 06:52:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-13T06:52:27Z</dc:date>
    <item>
      <title>Date range across years</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892103#M1015060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a set of data, which is in between 01 jan 2013 to 31 dec 2015.&lt;/P&gt;&lt;P&gt;I made a pivot table with the totals per year, and so far so good.&lt;/P&gt;&lt;P&gt;Now I want to allow the user to reduce the subset at will, to make a comparison between years in a specificied time.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Entire data subset from "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;01 jan 2013" to "31 dec 2015"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;YEAR - TOTAL&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2013 - 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2014 - 110&lt;/P&gt;&lt;P&gt;2015 - 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subset "at will" from "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;01 jan" to "28 feb"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;YEAR - TOTAL&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;2013 - 16&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;2014 - 14&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;2015 - 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do that?&lt;/P&gt;&lt;P&gt;I tried with this:&lt;/P&gt;&lt;P&gt;&amp;lt;CODE&amp;gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DATE_FIELD = {"&amp;gt;=$(=MakeDate(PIVOTED_YEAR_FIELD, Month(COMPARISON_FROM_DATE), Day(COMPARISON_FROM_DATE)))&amp;lt;=$(=MakeDate(PIVOTED_YEAR_FIELD, Month(COMPARISON_TO_DATE), Day(COMPARISON_TO_DATE)))"}&amp;gt;} (SUM_FIELD))&lt;/P&gt;&lt;P&gt;&amp;lt;/CODE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But something not work properly...&lt;/P&gt;&lt;P&gt;Any help, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 09:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892103#M1015060</guid>
      <dc:creator />
      <dc:date>2015-04-10T09:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date range across years</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892104#M1015061</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;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PIVOTED_YEAR_FIELD=, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;COMPARISON_FROM_DATE=, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;COMPARISON_TO_DATE=, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;DATE_FIELD = {"&amp;gt;=$(=MakeDate(min(PIVOTED_YEAR_FIELD), Month(COMPARISON_FROM_DATE), Day(COMPARISON_FROM_DATE)))&amp;lt;=$(=MakeDate(max(PIVOTED_YEAR_FIELD), Month(COMPARISON_TO_DATE), Day(COMPARISON_TO_DATE)))"}&amp;gt;} (SUM_FIELD))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892104#M1015061</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-04-10T10:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date range across years</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892105#M1015062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create Month from date field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write simpley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Month_Field={'Jan',Feb,'Mar'} &amp;gt;}SumField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add Remaining field which you require to remove selction with = sign before or aftre mOnth condition above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892105#M1015062</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2015-04-10T10:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date range across years</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892106#M1015063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, and thanks.&lt;/P&gt;&lt;P&gt;It's equal to write: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SUM(SUM_FIELD)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my mind I figured something like:&lt;/P&gt;&lt;P&gt;SUM(DATE_FIELD &amp;gt;= (Makedate(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EVALUATING_RECORD_YEAR, COMPARISON_START_MONTH, COMPARISON_START_DAY)&lt;/SPAN&gt; &amp;lt;= &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Makedate(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EVALUATING_RECORD_YEAR, COMPARISON_END_MONTH, COMPARISON_END_DAY)) &lt;/SPAN&gt;(SUM_FIELD))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I'm wrong?&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 11:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892106#M1015063</guid>
      <dc:creator />
      <dc:date>2015-04-10T11:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date range across years</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892107#M1015064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, and thanks.&lt;/P&gt;&lt;P&gt;Sorry, but I do not understand what you're saying..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 06:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892107#M1015064</guid>
      <dc:creator />
      <dc:date>2015-04-13T06:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date range across years</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892108#M1015065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create Month from date field in script using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(Date_field) as Month and then use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;PIVOTED_YEAR_FIELD=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;COMPARISON_FROM_DATE=, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;COMPARISON_TO_DATE=,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Month &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;={'Jan',Feb,'Mar'} &amp;gt;}SumField)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 15:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892108#M1015065</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2015-04-13T15:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date range across years</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892109#M1015066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thaks all!&lt;/P&gt;&lt;P&gt;Solved with:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;RECORD_DATE={"&amp;gt;=$(=Makedate(PIVOTED_YEAR_FIELD, num(MONTH(COMPARISON_FROM_DATE)), DAY(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;COMPARISON_FROM_DATE&lt;/SPAN&gt;) ))&amp;lt;=$(=Makedate(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;PIVOTED_YEAR_FIELD&lt;/SPAN&gt;, num(MONTH(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;COMPARISON_TO_DATE&lt;/SPAN&gt;)), DAY(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;COMPARISON_TO_DATE&lt;/SPAN&gt;) ))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple date between, but the problem is with missing cast to NUM of MONTH functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 15:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-across-years/m-p/892109#M1015066</guid>
      <dc:creator />
      <dc:date>2015-04-14T15:22:17Z</dc:date>
    </item>
  </channel>
</rss>

