<?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: Distinct count with complexity in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-count-with-complexity/m-p/807755#M1028622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count(distinct(if(len(trim(purgechar(Field1,'-')))&amp;gt;0,Field1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/78152_1.jpg" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct(if(istext(replace(left(Field2,1),' ',1)),Field2)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/78153_2.jpg" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Feb 2015 09:04:13 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-02-15T09:04:13Z</dc:date>
    <item>
      <title>Distinct count with complexity</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-count-with-complexity/m-p/807753#M1028620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QlikView peeps. I need some assistance with a couple of formulas. I have included a QVW to demonstrate what I'm trying to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially I need to do a distinct count on a field while removing nulls and dashes and items that don't start with letters. Please see my notes in the QVW where I get more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Feb 2015 05:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-count-with-complexity/m-p/807753#M1028620</guid>
      <dc:creator />
      <dc:date>2015-02-15T05:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count with complexity</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-count-with-complexity/m-p/807754#M1028621</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;a few comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Nulls are not counted, but spaces are. If you have values with multiple spaces, they will be counted too.&lt;/P&gt;&lt;P&gt;2. You can count IF() formulas, and in the IF condition, you can list everything you need to include or exclude - spaces, dashes, starting with a letter, etc... If the condition returns False, the result will be Null and it won't get counted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Feb 2015 06:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-count-with-complexity/m-p/807754#M1028621</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-15T06:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count with complexity</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-count-with-complexity/m-p/807755#M1028622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count(distinct(if(len(trim(purgechar(Field1,'-')))&amp;gt;0,Field1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/78152_1.jpg" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct(if(istext(replace(left(Field2,1),' ',1)),Field2)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/78153_2.jpg" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Feb 2015 09:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-count-with-complexity/m-p/807755#M1028622</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-15T09:04:13Z</dc:date>
    </item>
  </channel>
</rss>

