<?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: Formula problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525320#M196338</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #575757;"&gt;=&lt;/SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Created Date]={"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&amp;gt;=$(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;=$(&lt;/SPAN&gt;&lt;STRONG style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)", Month=, Year=}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Agreement Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And check the date format. If date format is mismatched, then it doesn't give correct answer.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2013 09:28:12 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2013-12-04T09:28:12Z</dc:date>
    <item>
      <title>Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525317#M196335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date created field which I have made the date and year in my script.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateCreated&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Created Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateCreated&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateCreated&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My current selection box is on November and 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN&gt;I want to calculate the amount of contracts terminated/disposed of in the month of November.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN&gt;I have a variable - vMaxDate, which is &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Created Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My formula to calculate the amount of terminated contracts is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;=&lt;/SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Disposal Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Disposal Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Agreement Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;it gives me value of 9. But if I do a manual check on our operating system it should be 226.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Even if I change my formula to &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Disposal Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;'01/11/2013'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Disposal Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;'30/11/2013'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Agreement Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; is still gives me 9.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;*R*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 08:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525317#M196335</guid>
      <dc:creator />
      <dc:date>2013-12-04T08:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525318#M196336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Try This&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #575757;"&gt;=&lt;/SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Created Date]={'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&amp;gt;=$(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;=$(&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Agreement Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 09:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525318#M196336</guid>
      <dc:creator />
      <dc:date>2013-12-04T09:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525319#M196337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count({1}if([Disposal Date]&amp;gt;='01/11/2013' or ([Disposal Date]&amp;lt;='30/11/2013'),[Agreement Number]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 09:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525319#M196337</guid>
      <dc:creator>sudeep_d</dc:creator>
      <dc:date>2013-12-04T09:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525320#M196338</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #575757;"&gt;=&lt;/SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Created Date]={"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&amp;gt;=$(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;=$(&lt;/SPAN&gt;&lt;STRONG style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)", Month=, Year=}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Agreement Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And check the date format. If date format is mismatched, then it doesn't give correct answer.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 09:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525320#M196338</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-12-04T09:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525321#M196339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me the all the terminations ever. Not just for November 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;*R*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 09:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525321#M196339</guid>
      <dc:creator />
      <dc:date>2013-12-04T09:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525322#M196340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your selection is November so the expression will give you the correct answer without using if statement or set analysis !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525322#M196340</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2013-12-04T11:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525323#M196341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Yousef,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I am setting an if statement is due to the fact that I have live and terminated inforamtion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need the data where the status of the agreement is terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(if(Status='T",[Agreement Number]) but that also only gives me a value of 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I then decided to bring in the disposal date is because live data will not have a Disposal date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525323#M196341</guid>
      <dc:creator />
      <dc:date>2013-12-04T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525324#M196342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your Disposal Date.&lt;BR /&gt;perhaps it is null. In this case you need to replace it with the &lt;STRONG&gt;alt&lt;/STRONG&gt;() function to get a valid test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525324#M196342</guid>
      <dc:creator />
      <dc:date>2013-12-04T11:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525325#M196343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To avoid date format errors ,&lt;/P&gt;&lt;P&gt;always create a numeric field eg... num(&lt;SPAN style="color: #800000; font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;[Created Date]&lt;/SPAN&gt;) as &lt;SPAN style="color: #800000; font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;[Created Date Num]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN style="color: #575757; font-family: inherit; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;=&lt;/SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;[Created Date Num]={'&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;&amp;gt;=$(num(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;&lt;EM style="color: #808080; font-family: inherit; font-size: 8pt; font-weight: inherit;"&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;&lt;EM style="font-family: inherit; font-size: 8pt; font-weight: inherit;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;&amp;lt;=$(num(&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM style="color: #808080; font-family: inherit; font-size: 8pt; font-weight: inherit;"&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;&lt;EM style="font-family: inherit; font-size: 8pt; font-weight: inherit;"&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;[Agreement Number]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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: 8pt;"&gt;Regards&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: 8pt;"&gt;Nitin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525325#M196343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-04T11:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525326#M196344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please upload the qvw file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525326#M196344</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2013-12-04T11:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525327#M196345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rentia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming the first condition in your query was supposed to be [Created Date], I suggest the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(if([Created Date] &amp;gt;= MonthStart(vMaxDate) &lt;/P&gt;&lt;P&gt;&amp;nbsp; or ([Disposal Date]&amp;lt;=vMaxDate) or (Len([Disposal Date]) = 0),[Agreement Number]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If performance of the above is too slow, you could convert that to a set expression,&amp;nbsp; like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;[Created Date] = {"&amp;gt;=$(=MonthStart(vMaxDate))"}, [Disposal Date] = {"&amp;lt;=$(=Date(vMaxDate))"}&amp;gt; +&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;[Created Date] = {"&amp;gt;=$(=MonthStart(vMaxDate))"}, [Disposal Date] -= {"*"}&amp;gt;} [Agreement Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 11:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525327#M196345</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-12-04T11:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525328#M196346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think an example is much more effective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you check in your data if you perhaps just select the eliminated/disposed contracts, which have creation date in November too. As I understand you right, you want all disposed contracts of november no matter what creation date they have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 12:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525328#M196346</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-12-04T12:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525329#M196347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a table box. And I have found the problem. It show me the diposed contracts that was created in November as well. It is not showing any contracts created prior to November.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix it, to show all the contracts terminated in November irrelevant of when the creation date was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;*R*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 12:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525329#M196347</guid>
      <dc:creator />
      <dc:date>2013-12-04T12:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525330#M196348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rentia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) count({$&amp;lt;Year=,Month=, [Disposal Date] = {"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)"}&amp;gt;}[Agreement Number])&lt;/P&gt;&lt;P&gt;2.) count({1&amp;lt;[Disposal Date] = {"&amp;gt;=$(=$(vMinDate))&amp;lt;=$(=$(vMaxDate))"}&amp;gt;}[Agreement Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't work, please clean up (load as numeric) date fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;I added in the script a variable (vMinDate) with:&lt;/P&gt;&lt;P&gt;LET vMinDate= num(MonthStart(vMaxDate));&lt;/P&gt;&lt;P&gt;It's a matter of taste...But I think it's easier to use in set expression etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should really take care of formatting datefields during load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached qvw for more information. If you have any questions feel free to ask. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps and best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 20:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525330#M196348</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-12-04T20:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Formula problem</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525331#M196349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;You should use Dispose Date instead of Date Created in the expression and&amp;nbsp; issue will be solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 04:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-problem/m-p/525331#M196349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-05T04:51:22Z</dc:date>
    </item>
  </channel>
</rss>

