<?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 IF AND between two dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900463#M313272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the new starters between two set dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the last day in the range: VStartDate&lt;/P&gt;&lt;P&gt;I have the first day in the range: VEndDate&lt;/P&gt;&lt;P&gt;(I know they are backwards, but the variables are used elsewhere and it makes sense, trust me)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I want to do is count the workers with a start date between these two dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[StartDate]={"&amp;lt;=$(VStartDate)"},[StartDate]={"&amp;gt;=$(VEndDate)"} &amp;gt;} DISTINCT([Worker Full Name]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I believe I have is, count all start dates with a start date less than or equal to the end of the month, and greater than or equal to the beginning of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it is returning dates outside the range. Is there a problem with the formula? The only thing I can think is because I have two conditionals on the same field, but I am not 100% on how to get multi conditional in one field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can offer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 12:02:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-25T12:02:17Z</dc:date>
    <item>
      <title>IF AND between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900463#M313272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the new starters between two set dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the last day in the range: VStartDate&lt;/P&gt;&lt;P&gt;I have the first day in the range: VEndDate&lt;/P&gt;&lt;P&gt;(I know they are backwards, but the variables are used elsewhere and it makes sense, trust me)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I want to do is count the workers with a start date between these two dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[StartDate]={"&amp;lt;=$(VStartDate)"},[StartDate]={"&amp;gt;=$(VEndDate)"} &amp;gt;} DISTINCT([Worker Full Name]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I believe I have is, count all start dates with a start date less than or equal to the end of the month, and greater than or equal to the beginning of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it is returning dates outside the range. Is there a problem with the formula? The only thing I can think is because I have two conditionals on the same field, but I am not 100% on how to get multi conditional in one field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can offer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 12:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900463#M313272</guid>
      <dc:creator />
      <dc:date>2015-06-25T12:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900464#M313273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[StartDate]={"&amp;lt;=$(VStartDate)&amp;gt;=$(VEndDate)"} &amp;gt;} DISTINCT([Worker Full Name]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 12:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900464#M313273</guid>
      <dc:creator />
      <dc:date>2015-06-25T12:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900465#M313274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try 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;lt;=' &amp;amp; $(VStartDate) &amp;amp; '&amp;gt;=' &amp;amp; $(VEndDate))"} &amp;gt;} DISTINCT([Worker Full Name]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and make sure that this expression &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;='&amp;lt;=' &amp;amp; $(VStartDate) &amp;amp; '&amp;gt;=' &amp;amp; $(VEndDate)&lt;/STRONG&gt; in a text box gives you the date range you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 12:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900465#M313274</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-25T12:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900466#M313275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use the same field within one set modifier twice, QV will only consider one element list, I believe.&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;[StartDate]={"&amp;gt;=$(VStartDate)&amp;lt;=$(VEndDate)"} &amp;gt;} DISTINCT([Worker Full Name]))&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;Note that I also reversed the comparison operators, this is how I read your requirements.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 12:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900466#M313275</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-25T12:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900467#M313276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, the text box code was a huge help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 12:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900467#M313276</guid>
      <dc:creator />
      <dc:date>2015-06-25T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900468#M313277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I did have to change the operators back, as my start and end are backwards (confusing I know) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that worked, thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 12:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900468#M313277</guid>
      <dc:creator />
      <dc:date>2015-06-25T12:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND between two dates</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900469#M313278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem, I am glad I was helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 12:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND-between-two-dates/m-p/900469#M313278</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-25T12:14:09Z</dc:date>
    </item>
  </channel>
</rss>

