<?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: Can I count dates not reached deadline? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909325#M653498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be missing the point. But usually you can compare dates in a normal way ie. IF(Approved_Date &amp;lt; Due_date, 1,0).&lt;/P&gt;&lt;P&gt;This will also depend on what value Approved_date has before item has been approved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 07:06:42 GMT</pubDate>
    <dc:creator>richard_chilvers</dc:creator>
    <dc:date>2015-08-04T07:06:42Z</dc:date>
    <item>
      <title>Can I count dates not reached deadline?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909322#M653495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to make a chart that show s numbers of cases not reaching the deadline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my xls file I have a columb called "Due date" and a columb called "Approved date" so if the "Approved date" is not done before the "due date" it should cound as 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was considering as expression under the chart something like&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Due date]&amp;gt;&amp;gt;[Approved date]&amp;gt;})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get an error....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 06:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909322#M653495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T06:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count dates not reached deadline?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909323#M653496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have also tried to use the following in the scripting area, wirthout luck&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &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;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&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: #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;[Created Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'MMM DD, YYYY'), 'MMM DD, YYYY'))&amp;lt;&amp;lt;(&lt;/SPAN&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: #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;[QA Approval date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'MMM DD, YYYY'), 'MMM DD, YYYY')), 1, 0) &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;LateApproved &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 06:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909323#M653496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T06:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count dates not reached deadline?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909324#M653497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use a set expression for this. Set expressions are evaluated once for the chart/table and not row by row. So the script solution is the way to go, but your expression is incorrect - it should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Date#([Created Date], 'MMM DD, YYYY')&amp;nbsp; &amp;lt; Date#([QA Approval date], 'MMM DD, YYYY')) as LateApproved,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Date() is a formatting function and is redundant here. Use &amp;lt; and not &amp;lt;&amp;lt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 07:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909324#M653497</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-04T07:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count dates not reached deadline?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909325#M653498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be missing the point. But usually you can compare dates in a normal way ie. IF(Approved_Date &amp;lt; Due_date, 1,0).&lt;/P&gt;&lt;P&gt;This will also depend on what value Approved_date has before item has been approved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 07:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909325#M653498</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-08-04T07:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count dates not reached deadline?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909326#M653499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a general practice, make sure all dates load as valid dates, then you can use a preceding load to simplify the statement further:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([Created Date] &amp;lt; [QA Approval date], 1, 0) as LateApproved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 07:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909326#M653499</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-04T07:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count dates not reached deadline?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909327#M653500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, my bad &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Date#([Created Date], 'MMM DD, YYYY')&amp;nbsp; &amp;lt; Date#([QA Approval date], 'MMM DD, YYYY'), 1, 0) as LateApproved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 07:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909327#M653500</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-04T07:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count dates not reached deadline?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909328#M653501</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;If(Date#([Due Date], 'MMM DD, YYYY')&amp;nbsp; &amp;lt; Date#([Approved date], 'MMM DD, YYYY'),1,0) as Due_Count&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 07:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909328#M653501</guid>
      <dc:creator>qlikmsg4u</dc:creator>
      <dc:date>2015-08-04T07:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count dates not reached deadline?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909329#M653502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your if is correct, just remove one extra '&amp;lt;'&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: #0000ff;"&gt;if&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: #0000ff;"&gt;date&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: #0000ff;"&gt;date#&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: #800000;"&gt;[Created Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 'MMM DD, YYYY'), 'MMM DD, YYYY'))&amp;lt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;lt;&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;date&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: #0000ff;"&gt;date#&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: #800000;"&gt;[QA Approval date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 'MMM DD, YYYY'), 'MMM DD, YYYY')), 1, 0) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;as&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: #800000;"&gt;LateApproved&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 07:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909329#M653502</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-04T07:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can I count dates not reached deadline?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909330#M653503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for all the good input and help, I got it to work and can continue the test of the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 09:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-count-dates-not-reached-deadline/m-p/909330#M653503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T09:35:10Z</dc:date>
    </item>
  </channel>
</rss>

