<?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 Need help with date range logic. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-date-range-logic/m-p/1730398#M721872</link>
    <description>&lt;P&gt;Hello.&amp;nbsp; I have an application that needs to show counts based upon the date the user selects.&amp;nbsp; They can select a single month from the list box and the displayed counts should reflect that selected month's values.&lt;/P&gt;&lt;P&gt;The source data has a begin and end date on the records, so I want counts where the user selected month falls between these two date fields.&lt;/P&gt;&lt;TABLE border="1" width="99.93%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.33%"&gt;Team&lt;/TD&gt;&lt;TD width="16.66%"&gt;Count&lt;/TD&gt;&lt;TD width="16.66%"&gt;Begin Date&lt;/TD&gt;&lt;TD width="33.33%"&gt;End Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.33%"&gt;A&lt;/TD&gt;&lt;TD width="16.66%"&gt;1&lt;/TD&gt;&lt;TD width="16.66%"&gt;7/1/2019&lt;/TD&gt;&lt;TD width="33.33%"&gt;6/30/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.33%"&gt;B&lt;/TD&gt;&lt;TD width="16.66%"&gt;1&lt;/TD&gt;&lt;TD width="16.66%"&gt;11/11/2019&lt;/TD&gt;&lt;TD width="33.33%"&gt;11/11/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, for Team A, I would want the count to reflect '1' if the user selects a date between July 2019 and June 2020, but anything before July 2019 for Team A would be '0' and anything after and including July 2020 would be '0'.&lt;/P&gt;&lt;P&gt;My attempts with set analysis isn't working.&amp;nbsp; The count doesn't change when I switch in and out of that range.&lt;/P&gt;&lt;P&gt;=count({&amp;lt;DisplayDate = {"&amp;gt;=$[Begin Date] &amp;lt;=$[End Date]"} &amp;gt;} [Team Name])&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>twills12</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Need help with date range logic.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-date-range-logic/m-p/1730398#M721872</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; I have an application that needs to show counts based upon the date the user selects.&amp;nbsp; They can select a single month from the list box and the displayed counts should reflect that selected month's values.&lt;/P&gt;&lt;P&gt;The source data has a begin and end date on the records, so I want counts where the user selected month falls between these two date fields.&lt;/P&gt;&lt;TABLE border="1" width="99.93%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.33%"&gt;Team&lt;/TD&gt;&lt;TD width="16.66%"&gt;Count&lt;/TD&gt;&lt;TD width="16.66%"&gt;Begin Date&lt;/TD&gt;&lt;TD width="33.33%"&gt;End Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.33%"&gt;A&lt;/TD&gt;&lt;TD width="16.66%"&gt;1&lt;/TD&gt;&lt;TD width="16.66%"&gt;7/1/2019&lt;/TD&gt;&lt;TD width="33.33%"&gt;6/30/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.33%"&gt;B&lt;/TD&gt;&lt;TD width="16.66%"&gt;1&lt;/TD&gt;&lt;TD width="16.66%"&gt;11/11/2019&lt;/TD&gt;&lt;TD width="33.33%"&gt;11/11/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, for Team A, I would want the count to reflect '1' if the user selects a date between July 2019 and June 2020, but anything before July 2019 for Team A would be '0' and anything after and including July 2020 would be '0'.&lt;/P&gt;&lt;P&gt;My attempts with set analysis isn't working.&amp;nbsp; The count doesn't change when I switch in and out of that range.&lt;/P&gt;&lt;P&gt;=count({&amp;lt;DisplayDate = {"&amp;gt;=$[Begin Date] &amp;lt;=$[End Date]"} &amp;gt;} [Team Name])&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-date-range-logic/m-p/1730398#M721872</guid>
      <dc:creator>twills12</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with date range logic.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-date-range-logic/m-p/1730437#M721873</link>
      <description>&lt;P&gt;try below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=count({&amp;lt;DisplayDate = {"=DisplayDate &amp;gt;=[Begin Date] and&amp;nbsp;DisplayDate &amp;lt;=[End Date]"} &amp;gt;} [Team Name])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 20:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-date-range-logic/m-p/1730437#M721873</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-23T20:41:42Z</dc:date>
    </item>
  </channel>
</rss>

