<?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: two date ranges and active in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016256#M642038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;(($(vSysDate)&amp;gt;= $(vDropDeadMonth)) &lt;/P&gt;&lt;P&gt;AND ($(vSysDate)&amp;lt;= $(vDropDeadDate)) &lt;/P&gt;&lt;P&gt;AND Match( Status , 'Approved' , 'Pre Approved')&lt;/P&gt;&lt;P&gt;AND (Outcome=('Funded')&lt;/P&gt;&lt;P&gt;OR Outcome=('Phased Funded')&lt;/P&gt;&lt;P&gt;OR Outcome=('Conditionally Funded')&lt;/P&gt;&lt;P&gt;OR Outcome=('Partially Funded'))&lt;/P&gt;&lt;P&gt;) &lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;(($(vSysDate)&amp;gt;= $(vDropDeadLastWk)) &lt;/P&gt;&lt;P&gt;AND ($(vSysDate)&amp;lt;= $(vDropDeadDate))&lt;/P&gt;&lt;P&gt;AND Match( Status , 'Approved' , 'Pre Approved')&lt;/P&gt;&lt;P&gt;AND Match( Outcome , 'Funded' , 'Phased Funded','Conditionally Funded','Partially Funded')&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;,'Yes','No'&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Feb 2016 10:33:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-15T10:33:30Z</dc:date>
    <item>
      <title>two date ranges and active</title>
      <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016248#M642030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I need to find the customers in two date ranges and have to validate if he/she is an active one as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;StartDate={'&amp;gt;=$(vSysDate)&amp;lt;=$(vDropDeadLastWk)'}&amp;gt; + &amp;lt;StartDate={'&amp;gt;=$(vSysDate)&amp;lt;=$(vDropDeadLastWk)'}}&amp;gt; AND Status={'Active'}&amp;gt; GrantID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First the customers who are 'Active' and who fall in either of the buckets between two dates.&lt;/P&gt;&lt;P&gt;I have to display only those cutomers.&lt;/P&gt;&lt;P&gt;All dates are in DD/MM/YYYY format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 16:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016248#M642030</guid>
      <dc:creator />
      <dc:date>2016-01-29T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: two date ranges and active</title>
      <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016249#M642031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&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;&lt;STRONG&gt;Count({&amp;lt;StartDate={"$(='&amp;gt;=' &amp;amp; vSysDate &amp;amp; '&amp;lt;=' &amp;amp; vDropDeadLastWk)"}, Status={'Active'}&amp;gt; GrantID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where this -&amp;gt; &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;='&amp;gt;=' &amp;amp; vSysDate &amp;amp; '&amp;lt;=' &amp;amp; vDropDeadLastWk&lt;/STRONG&gt; in a text object give you the format of your StartDate and range of where you want to filter the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 18:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016249#M642031</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T18:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: two date ranges and active</title>
      <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016250#M642032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have 2 date range, try with (replace the variables vDate1, ....vDate4 with your vars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;StartDate&lt;/SPAN&gt;={"&amp;gt;=$(=date(vDate1))&amp;lt;=$(=date(vDate2))"},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Status&lt;/SPAN&gt;={&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Active&lt;/SPAN&gt;}&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;StartDate&lt;/SPAN&gt;={"&amp;gt;=$(=date(vDate3))&amp;lt;=$(=date(vDate4))"},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Status&lt;/SPAN&gt;={&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Active&lt;/SPAN&gt;}&amp;gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;GrantID&lt;/SPAN&gt;) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you don't need the date function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 13:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016250#M642032</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-01-30T13:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: two date ranges and active</title>
      <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016251#M642033</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;You can use slider object for your custom selection between dates,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Active Ranges-203583.PNG" class="jive-image image-1" src="/legacyfs/online/113084_Active Ranges-203583.PNG" style="height: 280px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a slider object -&amp;gt; Put Date as a Field -&amp;gt; Mode Multi value and Value Mode discrete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help you to select range of two dates and According to that you can see customers and sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;HirisH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 17:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016251#M642033</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-30T17:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: two date ranges and active</title>
      <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016252#M642034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish / M G/ Sunny,&lt;/P&gt;&lt;P&gt;The Customers are getting filtered between the dates but its picking all the other statuses, like Inactive,Closed etc.&lt;/P&gt;&lt;P&gt;I just need the Active ones between the date ranges with an OR between them.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 09:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016252#M642034</guid>
      <dc:creator />
      <dc:date>2016-02-01T09:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: two date ranges and active</title>
      <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016253#M642035</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;Dates is a different one ,After selecting the date ranges,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Report should be like this,to show only active customer names as below example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Straight Table:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dimension:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Status={'Active'}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016253#M642035</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-01T11:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: two date ranges and active</title>
      <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016254#M642036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to understand here that do you have customers which can have different statuses like inactive, closed and active and you only want to show those customers which are active (and don't have inactive, closed) associated with them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&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;StartDate={"$(='&amp;gt;=' &amp;amp; vSysDate &amp;amp; '&amp;lt;=' &amp;amp; vDropDeadLastWk)"}, Customer = e({&amp;lt;Status ={&lt;SPAN style="color: #ff0000;"&gt;'Inactive', 'Closed'}&amp;gt;)&lt;/SPAN&gt;&amp;gt;} GrantID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016254#M642036</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-01T11:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: two date ranges and active</title>
      <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016255#M642037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;vSysDate={"&amp;gt;=$(=date(vDropDeadMonth))&amp;lt;=$(=date(DropDeadDate))"},Status={Approved}&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;vSysDate={"&amp;gt;=$(=date(vDropDeadLastWk))&amp;lt;=$(=date(DropDeadDate))"},Status={Approved}&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; GrantID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- This is returning just 1 for all the rows but my date ranges are very different.&lt;/P&gt;&lt;P&gt;Looking those GrantIDs between two sets of different dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 16:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016255#M642037</guid>
      <dc:creator />
      <dc:date>2016-02-10T16:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: two date ranges and active</title>
      <link>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016256#M642038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;(($(vSysDate)&amp;gt;= $(vDropDeadMonth)) &lt;/P&gt;&lt;P&gt;AND ($(vSysDate)&amp;lt;= $(vDropDeadDate)) &lt;/P&gt;&lt;P&gt;AND Match( Status , 'Approved' , 'Pre Approved')&lt;/P&gt;&lt;P&gt;AND (Outcome=('Funded')&lt;/P&gt;&lt;P&gt;OR Outcome=('Phased Funded')&lt;/P&gt;&lt;P&gt;OR Outcome=('Conditionally Funded')&lt;/P&gt;&lt;P&gt;OR Outcome=('Partially Funded'))&lt;/P&gt;&lt;P&gt;) &lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;(($(vSysDate)&amp;gt;= $(vDropDeadLastWk)) &lt;/P&gt;&lt;P&gt;AND ($(vSysDate)&amp;lt;= $(vDropDeadDate))&lt;/P&gt;&lt;P&gt;AND Match( Status , 'Approved' , 'Pre Approved')&lt;/P&gt;&lt;P&gt;AND Match( Outcome , 'Funded' , 'Phased Funded','Conditionally Funded','Partially Funded')&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;,'Yes','No'&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 10:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-date-ranges-and-active/m-p/1016256#M642038</guid>
      <dc:creator />
      <dc:date>2016-02-15T10:33:30Z</dc:date>
    </item>
  </channel>
</rss>

