<?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 Count Distinct or aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152655#M30013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;probably u can use this&lt;/P&gt;&lt;P&gt;Count(distinct If(aggr(Sum(Price),OrderId)&amp;gt;100,OrderId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i haven't tested it but u can give it a try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 May 2010 11:19:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-17T11:19:03Z</dc:date>
    <item>
      <title>Count Distinct or aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152653#M30011</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;I have an easy question (but after many test actually i'm confused...)&lt;/P&gt;&lt;P&gt;I would like to know on each dimension (Market Area)&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;how many order i have&lt;/STRONG&gt; count(distinct OrderId) It works&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;how many order have a price &amp;gt;100€ Wrong Result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(Price &amp;gt;100, 1,0 ) , OrderId) ) or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;STRONG&gt;(Price&lt;/STRONG&gt;&amp;gt;100, count (distinct OrderId))&lt;/P&gt;&lt;P&gt;_____________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;how many lines have a price &amp;gt; 100€.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(if(O$PREZ&amp;gt;10), 1,0)&lt;/STRONG&gt;&lt;/P&gt;Wrong ! &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Wrong ! &lt;P&gt;Wrong !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Many Many Thanks&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 11:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152653#M30011</guid>
      <dc:creator />
      <dc:date>2010-05-17T11:06:19Z</dc:date>
    </item>
    <item>
      <title>Count Distinct or aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152654#M30012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try in this way&lt;/P&gt;&lt;P&gt;Count( &lt;STRONG&gt;if&lt;/STRONG&gt;&lt;STRONG&gt;(Price&lt;/STRONG&gt;&amp;gt;100, distinct OrderId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 11:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152654#M30012</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-05-17T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Count Distinct or aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152655#M30013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;probably u can use this&lt;/P&gt;&lt;P&gt;Count(distinct If(aggr(Sum(Price),OrderId)&amp;gt;100,OrderId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i haven't tested it but u can give it a try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 11:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152655#M30013</guid>
      <dc:creator />
      <dc:date>2010-05-17T11:19:03Z</dc:date>
    </item>
    <item>
      <title>Count Distinct or aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152656#M30014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;count(distinct(if(Price&amp;gt;100,orderid)))&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 11:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152656#M30014</guid>
      <dc:creator />
      <dc:date>2010-05-17T11:29:31Z</dc:date>
    </item>
    <item>
      <title>Count Distinct or aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152657#M30015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thank&lt;/P&gt;&lt;P&gt;they work perfectly (The first one was wrong)&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 19:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-or-aggr/m-p/152657#M30015</guid>
      <dc:creator />
      <dc:date>2010-05-17T19:45:00Z</dc:date>
    </item>
  </channel>
</rss>

