<?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: Set analysis using date range? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-date-range/m-p/455334#M560976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easiest to create two variable, i.e vStartDate and vEndDate, and use those in the expression. Make sure the variables contain numeric dates. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vStartDate: date#('01/01/2010','DD/MM/YYYY') &lt;/P&gt;&lt;P&gt;vEndDate: date#('31/12/2010','DD/MM/YYYY') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression will then look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;CONTACT_MADE={'&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)'}&amp;gt;} distinct Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 16:51:58 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-04-15T16:51:58Z</dc:date>
    <item>
      <title>Set analysis using date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-date-range/m-p/455333#M560975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirment to count the number of customers that were contacted between two date ranges, I guess this can be done using set analysis however I am having problems with the syntax.&amp;nbsp; I appreciate any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I have a field named CONTACT_MADE which holds date value in the following format 'DD/MM/YYYY'&amp;nbsp; I need to count how many customers were contacted between two date ranges e.g. between 01/01/2010 and 31/12/2012 ? (note: multiple rows per customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 16:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-date-range/m-p/455333#M560975</guid>
      <dc:creator />
      <dc:date>2013-04-15T16:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-date-range/m-p/455334#M560976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easiest to create two variable, i.e vStartDate and vEndDate, and use those in the expression. Make sure the variables contain numeric dates. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vStartDate: date#('01/01/2010','DD/MM/YYYY') &lt;/P&gt;&lt;P&gt;vEndDate: date#('31/12/2010','DD/MM/YYYY') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression will then look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;CONTACT_MADE={'&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)'}&amp;gt;} distinct Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 16:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-date-range/m-p/455334#M560976</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-15T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-date-range/m-p/455335#M560977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this specific date range:&lt;/P&gt;&lt;P&gt;count({&amp;lt;CONTACT_MADE={"$(= '&amp;gt;=' &amp;amp; '01/01/2010' &amp;amp; '&amp;lt;=' &amp;amp; '31/12/2012')"}&amp;gt;} distinct customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a more generic form, where you can use expressions for dates&lt;BR /&gt;count(&amp;lt;CONTACT_MADE={"$(= '&amp;gt;=' &amp;amp; date(startdate expression) &amp;amp; '&amp;lt;=' &amp;amp; date(enddate expression))"}&amp;gt;} distinct customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 16:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-date-range/m-p/455335#M560977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-15T16:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis using date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-using-date-range/m-p/1691248#M560978</link>
      <description>&lt;P&gt;Thanks, it helped me too.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 13:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-using-date-range/m-p/1691248#M560978</guid>
      <dc:creator>usamabinsadiq</dc:creator>
      <dc:date>2020-04-06T13:46:25Z</dc:date>
    </item>
  </channel>
</rss>

