<?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 formula with count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311279#M114896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No the tables are not linked. The SalesPerson are from "Employee Table" and The Shipment are in SalesOrder Table. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried: &lt;BR /&gt;&lt;CODE class="jive-code"&gt;Count({&amp;lt; OneDayLate = {'1 Day Late'} &amp;gt;} SalesPerson)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;and then this:&lt;BR /&gt;&lt;CODE class="jive-code"&gt;Count({&amp;lt; OneDayLate = {'1 Day Late'} &amp;gt;} EmployeeEntityID)&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Its not working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 07:24:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-28T07:24:11Z</dc:date>
    <item>
      <title>formula with count</title>
      <link>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311275#M114892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I need HELP!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying is to count the On-Time and Late Shipment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote on my script these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipDate-DueDate as DayTimeShiping,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(DayTimeShiping &amp;lt;= 0, 'OnTime') AS OnTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(DayTimeShiping = 1, '1 Day Late') AS OneDayLate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(DayTimeShiping = 2, '2 Days Late') AS TwoDaysLate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(DayTimeShiping = 3, '3 Days Late') AS ThreeDaysLate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(DayTimeShiping &amp;gt; 3, '3 Days or Later') AS ThreeDaysLateOrMore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I have a Diagram:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with SalesPerson and I have a formula--&amp;gt; for example: count (OneDayLate) etc&lt;/P&gt;&lt;P&gt;but it dosn't count correct, I don't know why? I have added a pic of that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me why it dosn't count correct, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 11:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311275#M114892</guid>
      <dc:creator />
      <dc:date>2011-07-27T11:43:08Z</dc:date>
    </item>
    <item>
      <title>formula with count</title>
      <link>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311276#M114893</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;Field "OneDayLate" has the same value in all cases. Count() returns the number of occurences of a value in a field, irrespective of they are duplicated or not, so you probably need to add some criteria to. Are tables linked? Are you selecting the dates or Shipment Nos?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 12:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311276#M114893</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-27T12:00:10Z</dc:date>
    </item>
    <item>
      <title>formula with count</title>
      <link>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311277#M114894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;What you mean to linked tables? I am selecting The number of Shipment, which has Delay or the shipments were On Time.&lt;/P&gt;&lt;P&gt;The Output should shows how many time has the shipment the Delay or On-Time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't understand, how QlikView is working. If you see my added pic, you can see two tables. The first table I worked with the count-formula, and the output there is 47, which is wrong. The second tables shows just two times (that one is correct). I thought QlikView will count the two time the 'value'... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 12:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311277#M114894</guid>
      <dc:creator />
      <dc:date>2011-07-27T12:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: formula with count</title>
      <link>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311278#M114895</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;What happens if you use instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Count({&amp;lt; OneDayLate = {'1 Day Late'} &amp;gt;} ShipmentID)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meant if the table where the SalesPerson field is is linked to the Shipments table that you show in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 17:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311278#M114895</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-27T17:40:10Z</dc:date>
    </item>
    <item>
      <title>formula with count</title>
      <link>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311279#M114896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No the tables are not linked. The SalesPerson are from "Employee Table" and The Shipment are in SalesOrder Table. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried: &lt;BR /&gt;&lt;CODE class="jive-code"&gt;Count({&amp;lt; OneDayLate = {'1 Day Late'} &amp;gt;} SalesPerson)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;and then this:&lt;BR /&gt;&lt;CODE class="jive-code"&gt;Count({&amp;lt; OneDayLate = {'1 Day Late'} &amp;gt;} EmployeeEntityID)&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Its not working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 07:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311279#M114896</guid>
      <dc:creator />
      <dc:date>2011-07-28T07:24:11Z</dc:date>
    </item>
    <item>
      <title>formula with count</title>
      <link>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311280#M114897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did a Mistake! I should count the SalesOrderID, and then it shows correct! As Dimension I took the ShipmentStatus... &lt;BR /&gt;Miguel Thanks for your help and&amp;nbsp; for spending time for that!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 09:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/formula-with-count/m-p/311280#M114897</guid>
      <dc:creator />
      <dc:date>2011-07-28T09:17:09Z</dc:date>
    </item>
  </channel>
</rss>

