<?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: Comparing Dates in Set Analysis Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Dates-in-Set-Analysis-Problem/m-p/394026#M566957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is one extra curly brace &lt;/P&gt;&lt;P&gt;use below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;count({&amp;lt;ELIGIBILITY_DATE={"&amp;gt;=monthstart(addmonths(ELIGIBILITY_DATE,-1))"}&amp;gt;}itemcode)&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: #737373; font-family: Arial; background-color: #ffffff;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2012 11:05:10 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2012-11-30T11:05:10Z</dc:date>
    <item>
      <title>Comparing Dates in Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates-in-Set-Analysis-Problem/m-p/394025#M566956</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;i&amp;nbsp; have a date field eligibility_date&amp;nbsp; which has a date in 'DD-MM-YYYY' format&amp;nbsp;&amp;nbsp;&amp;nbsp; my table structure is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="94" style="border: 1px solid #000000; width: 269px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;itemcode&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;eligibility_date&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;e13442&lt;/TD&gt;&lt;TD&gt; 04-05-2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;e4922&lt;/TD&gt;&lt;TD&gt;03-04-2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;e4234&lt;/TD&gt;&lt;TD&gt;23-05-2012&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to write an expression&amp;nbsp; which will return me the count(itemcode)&amp;nbsp; falling between&amp;nbsp; a month lets&amp;nbsp; say 'X' and&amp;nbsp; count(itemcode) a on month 'X-1' ie .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current expression is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;ELIGIBILITY_DATE={"&amp;gt;=monthstart(addmonths(ELIGIBILITY_DATE,-1))"}}&amp;gt;}itemcode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its giving null values .&amp;nbsp; my&amp;nbsp; condition is that i want&amp;nbsp; records for elibility_date and records for elibility_date-1 month .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also tried count(if(date(ELIGIBILITY_DATE,'DD-MM-YYYY')&amp;lt;=MonthStart(AddMonths(ELIGIBILITY_DATE,-1)),itemcode,0))&lt;/P&gt;&lt;P&gt; but i required a set analysis based expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Solutions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_tushar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 10:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates-in-Set-Analysis-Problem/m-p/394025#M566956</guid>
      <dc:creator />
      <dc:date>2012-11-30T10:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Dates in Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates-in-Set-Analysis-Problem/m-p/394026#M566957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is one extra curly brace &lt;/P&gt;&lt;P&gt;use below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;count({&amp;lt;ELIGIBILITY_DATE={"&amp;gt;=monthstart(addmonths(ELIGIBILITY_DATE,-1))"}&amp;gt;}itemcode)&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: #737373; font-family: Arial; background-color: #ffffff;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 11:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates-in-Set-Analysis-Problem/m-p/394026#M566957</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-11-30T11:05:10Z</dc:date>
    </item>
  </channel>
</rss>

