<?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: the count if did not work ? in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795610#M2341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the datatime format is dd.MM.yyyy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 00:29:36 GMT</pubDate>
    <dc:creator>guantujiang</dc:creator>
    <dc:date>2015-01-16T00:29:36Z</dc:date>
    <item>
      <title>the count if did not work ?</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795603#M2334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to have a count of working day base the loaded list, so I try in the count if command,&lt;/P&gt;&lt;P&gt;it work if it write down the date with string,just as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(if(CALENDERDATE &amp;lt; '15.01.2015', ISOFFICEHOLIDAY))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even work with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(if(CALENDERDATE &amp;lt; today(), ISOFFICEHOLIDAY))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result should be 104 ( working day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it will fail if I try as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(if(CALENDERDATE &amp;lt; DATADATE, ISOFFICEHOLIDAY))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result show 402 or some other more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the DATADATE was flited out by selected list in dataday &amp;amp; datamonth &amp;amp; datayear, if I try the formula in a text object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=DATADATE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it show with the right result just as : 05.10.2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what happened??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=====================&lt;/P&gt;&lt;P&gt;list as below:&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;CALENDERDATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;ISOFFICEHOLIDAY&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;30.09.2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;01.10.2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;02.10.2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;03.10.2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;04.10.2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;05.10.2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75357_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 09:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795603#M2334</guid>
      <dc:creator>guantujiang</dc:creator>
      <dc:date>2015-01-15T09:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: the count if did not work ?</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795604#M2335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with (Count(if(CALENDERDATE &amp;lt; Date(DATADATE), ISOFFICEHOLIDAY)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is in the date format ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 09:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795604#M2335</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-15T09:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: the count if did not work ?</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795605#M2336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still not work, &lt;/P&gt;&lt;P&gt;I even try &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Count(if( num(CALENDERDATE, '0') &amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num&lt;/SPAN&gt;(DATADATE, '0'), ISOFFICEHOLIDAY))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Count(if(CALENDERDATE &amp;lt; makedate( year(DATADATE),month(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DATADATE&lt;/SPAN&gt;),day(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DATADATE&lt;/SPAN&gt;)), ISOFFICEHOLIDAY))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;but neither work,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;but I agrree that should be issue in format&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 10:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795605#M2336</guid>
      <dc:creator>guantujiang</dc:creator>
      <dc:date>2015-01-15T10:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: the count if did not work ?</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795606#M2337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Coupd you send me your document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 10:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795606#M2337</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-15T10:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: the count if did not work ?</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795607#M2338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SURE, i HAVE SENT YOU THE FILE WITH MAIL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 12:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795607#M2338</guid>
      <dc:creator>guantujiang</dc:creator>
      <dc:date>2015-01-15T12:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: the count if did not work ?</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795608#M2339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I read it right that the DATADATE returns 05.10.2015 (October 5 or May 10)?&lt;/P&gt;&lt;P&gt;In your hardcoded example it is January 15...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 12:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795608#M2339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-15T12:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: the count if did not work ?</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795609#M2340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually, the value of datadate will be change while u selete different datayear &amp;amp; datamonth &amp;amp; dataday. so it is not the key point i think&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 00:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795609#M2340</guid>
      <dc:creator>guantujiang</dc:creator>
      <dc:date>2015-01-16T00:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: the count if did not work ?</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795610#M2341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the datatime format is dd.MM.yyyy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 00:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795610#M2341</guid>
      <dc:creator>guantujiang</dc:creator>
      <dc:date>2015-01-16T00:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: the count if did not work ?</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795611#M2342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, finnally I get it &lt;/P&gt;&lt;P&gt;should be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Count( DISTINCT if(CALENDERDATE &amp;lt; MonthEnd(&amp;nbsp;&amp;nbsp; DATADATE ) and CALENDERDATE &amp;gt;= MonthStart(&amp;nbsp;&amp;nbsp; DATADATE ) and ISOFFICEHOLIDAY = 0&amp;nbsp; ,CALENDERDATE ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 02:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/the-count-if-did-not-work/m-p/795611#M2342</guid>
      <dc:creator>guantujiang</dc:creator>
      <dc:date>2015-01-16T02:43:04Z</dc:date>
    </item>
  </channel>
</rss>

