<?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 How do I exclude certain objects when counting in an expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-exclude-certain-objects-when-counting-in-an-expression/m-p/251666#M1206655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this: &lt;STRONG&gt;count(if(len(PurchaseID)=0, InvoiceID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is recommended to use len(Field) rather than isnull(field) as the isnull() function is unreliable in some environments (64-bit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Apr 2010 12:25:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-16T12:25:30Z</dc:date>
    <item>
      <title>How do I exclude certain objects when counting in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-exclude-certain-objects-when-counting-in-an-expression/m-p/251665#M1206654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am new to QlikView so please be patient with me. I may not use the correct terminology for things. [:)]&lt;/P&gt;&lt;P&gt;I would like to make an expression that counts each object in a field that have a connection to another field.&lt;/P&gt;&lt;P&gt;To clarify I can explain the scenario:&lt;BR /&gt;I have a field containing invoices (or rather their IDs). An invoice can have two different types (purchase or sales), but lack a field separating the two. However, I can see wether an invoice is connected to a purchase or a sale by looking at the fields of those objects.&lt;/P&gt;&lt;P&gt;I simply want to count all the invoices that ONLY are connected to sales, and exclude the purchase invoices. For example:&lt;/P&gt;&lt;P&gt;**** &lt;STRONG&gt;count (InvoiceID, if (PurchaseID is unavailable)&lt;/STRONG&gt; ****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help I can get, even if it's just a tip on where I can find this kind of information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Johannes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 11:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-exclude-certain-objects-when-counting-in-an-expression/m-p/251665#M1206654</guid>
      <dc:creator />
      <dc:date>2010-04-16T11:56:04Z</dc:date>
    </item>
    <item>
      <title>How do I exclude certain objects when counting in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-exclude-certain-objects-when-counting-in-an-expression/m-p/251666#M1206655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this: &lt;STRONG&gt;count(if(len(PurchaseID)=0, InvoiceID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is recommended to use len(Field) rather than isnull(field) as the isnull() function is unreliable in some environments (64-bit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 12:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-exclude-certain-objects-when-counting-in-an-expression/m-p/251666#M1206655</guid>
      <dc:creator />
      <dc:date>2010-04-16T12:25:30Z</dc:date>
    </item>
    <item>
      <title>How do I exclude certain objects when counting in an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-exclude-certain-objects-when-counting-in-an-expression/m-p/251667#M1206656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much! Worked like a charm. You just made my day. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 14:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-exclude-certain-objects-when-counting-in-an-expression/m-p/251667#M1206656</guid>
      <dc:creator />
      <dc:date>2010-04-16T14:57:46Z</dc:date>
    </item>
  </channel>
</rss>

