<?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 how to write range expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-write-range-expression/m-p/1305011#M459904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello All,&lt;/P&gt;&lt;P&gt;can any one suggest me what is wrong with my below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;count(DISTINCT{&amp;lt;SCOPE={'Yes'},VALIDFROM ={"&amp;lt;(max([CAL DAY])"},VALIDTO={"&amp;gt;(max([CAL DAY])"}&amp;gt;}ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #99cc00;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CAL DAY has all the fiscal year&amp;nbsp; dates ,let say if Fiscal year 2017 is selected i need to take max fiscal year date from CAL DAY(31-03-2017) and based up on that &lt;STRONG&gt;valid from&lt;/STRONG&gt;&amp;nbsp; has to be less than CAL DAY and &lt;STRONG&gt;valid to&lt;/STRONG&gt; has to be greater than CAL DAY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2017 13:28:29 GMT</pubDate>
    <dc:creator>kunkumnaveen</dc:creator>
    <dc:date>2017-07-27T13:28:29Z</dc:date>
    <item>
      <title>how to write range expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-range-expression/m-p/1305011#M459904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello All,&lt;/P&gt;&lt;P&gt;can any one suggest me what is wrong with my below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;count(DISTINCT{&amp;lt;SCOPE={'Yes'},VALIDFROM ={"&amp;lt;(max([CAL DAY])"},VALIDTO={"&amp;gt;(max([CAL DAY])"}&amp;gt;}ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #99cc00;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CAL DAY has all the fiscal year&amp;nbsp; dates ,let say if Fiscal year 2017 is selected i need to take max fiscal year date from CAL DAY(31-03-2017) and based up on that &lt;STRONG&gt;valid from&lt;/STRONG&gt;&amp;nbsp; has to be less than CAL DAY and &lt;STRONG&gt;valid to&lt;/STRONG&gt; has to be greater than CAL DAY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 13:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-range-expression/m-p/1305011#M459904</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2017-07-27T13:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to write range expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-range-expression/m-p/1305012#M459905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Formate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(CALDAY,'DD-MM-YYYY') as "CAL DAY"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date(VALIDFROM,'DD-MM-YYYY') as VALIDFROM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(VALIDTO,'DD-MM-YYYY') as&amp;nbsp; VALIDTO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting 0 as output when i tried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 13:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-range-expression/m-p/1305012#M459905</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2017-07-27T13:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to write range expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-write-range-expression/m-p/1305013#M459906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At a first glance, one is syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT {&amp;lt; SCOPE = {'Yes'}, VALIDFROM = {"&lt;STRONG&gt;&amp;lt;$(=Date(&lt;/STRONG&gt;Max([CAL DAY])))"}, VALIDTO = {"&lt;STRONG&gt;&amp;gt;$(=Date(&lt;/STRONG&gt;Max([CAL DAY])))"} &amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other may come from data itself, for set analysis to work, "CAL DAY" must have the same exact format than VALIDFROM and VALIDTO, which is unlikely because the Max() function will return a numeric date, not in the form "31/03/2017". So I added the Date() function above, but you need to make sure the formats are the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-write-range-expression/m-p/1305013#M459906</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-07-27T14:02:26Z</dc:date>
    </item>
  </channel>
</rss>

