<?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 Help with date issues in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-date-issues-in-expression/m-p/681965#M1083460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following in an expression and it works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(=AddMonths((MonthStart(Today())),-14))&amp;lt;=$(=MonthEnd(AddMonths((Monthend(Today())),-3)))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It basically counts the quantity a product has sold for the previous 12 months.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However, when I change the date parament of today() to a different date, it does not work.&amp;nbsp; The date I am entering is the product introduction date and I am trying to see how the product did the first 3 months of sales.&amp;nbsp; It returns 0.&amp;nbsp; I am assuming something is different about my CalendarIntroductionDate.&amp;nbsp; Thoughts?????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(=AddMonths((MonthStart(CalendarIntroductionDate)),+1))&amp;lt;=$(=MonthEnd(AddMonths((Monthend(CalendarIntroductionDate)),+3)))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2014 20:28:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-30T20:28:14Z</dc:date>
    <item>
      <title>Help with date issues in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-date-issues-in-expression/m-p/681965#M1083460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following in an expression and it works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(=AddMonths((MonthStart(Today())),-14))&amp;lt;=$(=MonthEnd(AddMonths((Monthend(Today())),-3)))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It basically counts the quantity a product has sold for the previous 12 months.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However, when I change the date parament of today() to a different date, it does not work.&amp;nbsp; The date I am entering is the product introduction date and I am trying to see how the product did the first 3 months of sales.&amp;nbsp; It returns 0.&amp;nbsp; I am assuming something is different about my CalendarIntroductionDate.&amp;nbsp; Thoughts?????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarWrittenDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(=AddMonths((MonthStart(CalendarIntroductionDate)),+1))&amp;lt;=$(=MonthEnd(AddMonths((Monthend(CalendarIntroductionDate)),+3)))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 20:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-date-issues-in-expression/m-p/681965#M1083460</guid>
      <dc:creator />
      <dc:date>2014-06-30T20:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date issues in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-date-issues-in-expression/m-p/681966#M1083461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is CalendarIntroductionDate a valid date? If its text-based, you will need to convert it using&lt;/P&gt;&lt;P&gt;Date#(CalendarIntroductionDate, 'M/D/YY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 20:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-date-issues-in-expression/m-p/681966#M1083461</guid>
      <dc:creator />
      <dc:date>2014-06-30T20:49:43Z</dc:date>
    </item>
  </channel>
</rss>

