<?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: Expression Between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436603#M431526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check and come back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 11:17:15 GMT</pubDate>
    <dc:creator>upaliwije</dc:creator>
    <dc:date>2017-08-21T11:17:15Z</dc:date>
    <item>
      <title>Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436598#M431521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = {'&amp;gt;=15-Aug-2017'},RENEWED_DATE = {"&amp;lt;=$(Max(TRAN_DATE))"}&amp;gt;} DISTINCT POLICY_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want above expression to return data between these two dates &lt;SPAN style="font-size: 13.3333px;"&gt;RENEWED_DATE = {'&amp;gt;=15-Aug-2017'},RENEWED_DATE = {"&amp;lt;=$(Max(TRAN_DATE))" But it returns data even prior 15th Aug 2017&amp;nbsp;&amp;nbsp; I may have made&amp;nbsp; mistake. Pls help me to correct it &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 10:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436598#M431521</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-08-21T10:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436599#M431522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One best option this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RENEWED_DATE &amp;gt;= '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;15-Aug-2017&lt;/SPAN&gt;' and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RENEWED_DATE &amp;lt;= Max(TOTAL TRAN_DATE),1,0) as Flag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Set analysis should like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, Flag = {1}&amp;gt;} DISTINCT POLICY_NO)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Create variable for that static date and use below, I don't think whether this will work. But attempt is good&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;&lt;STRONG&gt;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = {"=$(Variable) and (RENEWED_DATE &amp;lt;= Max(TRAN_DATE))"}&amp;gt;} DISTINCT POLICY_NO)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 10:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436599#M431522</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-21T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436600#M431523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use below&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;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = &lt;STRONG&gt;{"&amp;gt;=$(=makedate(2017,8,15)) &amp;lt;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(=Max(TRAN_DATE))&lt;/SPAN&gt;"}&lt;/STRONG&gt;,RENEWED_DATE = {"&amp;lt;=$(Max(TRAN_DATE))"}&amp;gt;} DISTINCT POLICY_NO)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 10:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436600#M431523</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-21T10:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436601#M431524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not use your 1st Option since TRAN_DATE will change daily . I tried your 2nd Option but It does not work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is&lt;/P&gt;&lt;P&gt;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = {"=$(vAug)and (RENEWED_DATE &amp;lt;= Max(TRAN_DATE))"}&amp;gt;} DISTINCT POLICY_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;My variable is like this &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174028_Screenshot_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Your advice is appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 10:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436601#M431524</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-08-21T10:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436602#M431525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RENEWED_DATE and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TRAN_DATE are associate each?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 10:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436602#M431525</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-21T10:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436603#M431526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check and come back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436603#M431526</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-08-21T11:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436604#M431527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried my suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436604#M431527</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-21T11:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436605#M431528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but may be formatting might be an issue as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = {"$(='&amp;gt;=' &amp;amp; Date(MakeDate(2017, 8, 15), 'DD-MMM-YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(TRANS_DATE), 'DD-MMM-YYYY'))"}&amp;gt;} DISTINCT POLICY_NO)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am assuming that RENEWED_DATE is in DD-MMM-YYYY format, if this is not true, then change the date format within the set analysis accordingly...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436605#M431528</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-21T11:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436606#M431529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anil &amp;amp; Kushal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the TRAN_DATE&amp;nbsp; with RENEWED_DATE and the expression is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = {"&amp;gt;=$(=makedate(2017,8,15)) &amp;lt;= $(=Max(RENEWED_DATE))"},RENEWED_DATE = {"&amp;lt;=$(Max(RENEWED_DATE))"}&amp;gt;} DISTINCT POLICY_NO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the Result is shown below&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174063_Screenshot_1.png" style="height: 231px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436606#M431529</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-08-21T11:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436607#M431530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a shot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = {"$(='&amp;gt;=' &amp;amp; Date(MakeDate(2017, 8, 15), 'DD-MMM-YY'))"}&amp;gt;} DISTINCT POLICY_NO)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436607#M431530</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-21T11:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436608#M431531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;below should work&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: 13px;"&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: 13px;"&gt;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = {"&amp;gt;=$(=makedate(2017,8,15)) &amp;lt;= $(=Max(RENEWED_DATE))"}&amp;gt;} DISTINCT POLICY_NO)&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: 13px;"&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: 13px;"&gt;or&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: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = {"&amp;gt;=$(=date(makedate(2017,8,15),'DD-MMM-YY')) &amp;lt;= $(=date(Max(RENEWED_DATE)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'DD-MMM-YY')&lt;/SPAN&gt;)"}&amp;gt;} DISTINCT POLICY_NO)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436608#M431531</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-21T11:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436609#M431532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be better to use this as provided by &lt;A href="https://community.qlik.com/people/kush141087"&gt;kush141087&lt;/A&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;Count({&amp;lt;RENEWED_PREMIUM = {'&amp;gt;0'}, RENEWED_DATE = {"&amp;gt;=$(=Date(MakeDate(2017,8,15),'DD-MMM-YY')) &amp;lt;= $(=Date(Max(RENEWED_DATE)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,'DD-MMM-YY')&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)"}&amp;gt;} DISTINCT POLICY_NO)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Between-two-dates/m-p/1436609#M431532</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-21T11:47:10Z</dc:date>
    </item>
  </channel>
</rss>

