<?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 to identify uniqueness as an expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512946#M191645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to create a column in a straight table to identify uniqueness.&lt;BR /&gt;For example, I have apples, bananas &amp;amp; pears. I also have the names of people that bought them.&lt;/P&gt;&lt;P&gt;How can I calculate against each fruit how many people only bought that fruit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 11:46:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-21T11:46:38Z</dc:date>
    <item>
      <title>How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512946#M191645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to create a column in a straight table to identify uniqueness.&lt;BR /&gt;For example, I have apples, bananas &amp;amp; pears. I also have the names of people that bought them.&lt;/P&gt;&lt;P&gt;How can I calculate against each fruit how many people only bought that fruit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 11:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512946#M191645</guid>
      <dc:creator />
      <dc:date>2013-08-21T11:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512947#M191646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rowno() or recno()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 11:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512947#M191646</guid>
      <dc:creator />
      <dc:date>2013-08-21T11:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512948#M191647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this expression&lt;/P&gt;&lt;P&gt;aggr(nodistinct count(People),Fruitfield)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 11:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512948#M191647</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-08-21T11:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512949#M191648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishwa&lt;/P&gt;&lt;P&gt;Can you plz explain in detail how to acheive the task&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 12:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512949#M191648</guid>
      <dc:creator />
      <dc:date>2013-08-21T12:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512950#M191649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=sum(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Fruit&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=1,1)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 12:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512950#M191649</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2013-08-21T12:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512951#M191650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;FRUITS,PEOPLE,CITY&lt;/P&gt;&lt;P&gt;APPLE,5,TRE&lt;/P&gt;&lt;P&gt;ORANGE,6,BAN&lt;/P&gt;&lt;P&gt;GRAPES,7,COM&lt;/P&gt;&lt;P&gt;APPLE,3,MAN&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;TABLE2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load FRUITS, SUM(PEOPLE )as ArtNoTotal Resident TABLE1 group by FRUITS; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fruits as dimension and ArtNoTotal as expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 12:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512951#M191650</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2013-08-21T12:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512952#M191651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aggr(count(People), Fruitfield)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if no. of count is 1 then it means unique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 12:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512952#M191651</guid>
      <dc:creator />
      <dc:date>2013-08-21T12:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512953#M191652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all your responses, but I am obviously missing something.&lt;/P&gt;&lt;P&gt;My straight table has Fruit as it's dimension.&lt;/P&gt;&lt;P&gt;if I do aggr(count(distinct Name), Fruit), I get the same as count(distinct Name), which is the number of people who bought this fruit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What was the aggr function supposed to add to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If 2 people bought Apples and 3 bought Pears, but only one bought both, then I want to return 1 against Apples and 2 against Pears, that being the unique purchasers of each fruit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 12:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512953#M191652</guid>
      <dc:creator />
      <dc:date>2013-08-21T12:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512954#M191653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Fruit is the dimension then aggr by fruit won't make any difference to the sum. In my example its aggr by Name and only counts if the count of fruit is 1. Ie. A person only bought one fruit (that fruit) and no others &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you feedback on my example? I thought reading your question the result was correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 13:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512954#M191653</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2013-08-21T13:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify uniqueness as an expression?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512955#M191654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Richard. The results I got at first with your suggestion seemed wrong, so I incorrectly thought that you had got the fields the wrong way round.&lt;/P&gt;&lt;P&gt;In fact all that was missing was a distinct:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Fruit&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=1,1))&amp;nbsp; did the trick.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Much appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Alan Cobbald&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 13:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-uniqueness-as-an-expression/m-p/512955#M191654</guid>
      <dc:creator />
      <dc:date>2013-08-21T13:44:20Z</dc:date>
    </item>
  </channel>
</rss>

