<?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: Aggr Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478507#M178756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You&amp;nbsp; must have an expression! enter a expression sum(1) and return&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2013 14:26:21 GMT</pubDate>
    <dc:creator>prodanov</dc:creator>
    <dc:date>2013-06-17T14:26:21Z</dc:date>
    <item>
      <title>Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478504#M178753</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;&lt;/P&gt;&lt;P&gt;I am still trying to wrap my head around the Aggr() function, so I need some help! I want to group a set of data by ID, and then know how many distinct string values are attributed to that ID. Once I know&amp;nbsp; that there is more than one unique string, I'd like to display the ID as a dimension. That said, I have this as my dimension expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(aggr(Count(DISTINCT UniqueString), ID) &amp;gt; 1, ID, Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is returning all Null values. Please help me resove the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 13:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478504#M178753</guid>
      <dc:creator />
      <dc:date>2013-06-17T13:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478505#M178754</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;&amp;nbsp; Whar is your expression? It may give a zero or null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478505#M178754</guid>
      <dc:creator>prodanov</dc:creator>
      <dc:date>2013-06-17T14:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478506#M178755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My expression is in the dimension field (custom dimension expression).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478506#M178755</guid>
      <dc:creator />
      <dc:date>2013-06-17T14:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478507#M178756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You&amp;nbsp; must have an expression! enter a expression sum(1) and return&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478507#M178756</guid>
      <dc:creator>prodanov</dc:creator>
      <dc:date>2013-06-17T14:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478508#M178757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding both dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =if(Count(DISTINCT UniqueString) &amp;gt; 1, ID, Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then do Suppress if NULL on calculated dimension&lt;/P&gt;&lt;P&gt;go to presentation tab&lt;/P&gt;&lt;P&gt;and hide ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478508#M178757</guid>
      <dc:creator>calvindk</dc:creator>
      <dc:date>2013-06-17T14:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478509#M178758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh sorry, I misunderstood your question. I DO have an expression - it's to choose the FirstSortedValue() of unique string based on a date. I double checked my expression and I had reversed the order of the parameters in FirstSortedValue() - I had date first and then UniqueString.&amp;nbsp; *FACEPALM* &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I corrected the expression and VOILA. This was a simple/stupid error - thanks for the suggestion and for keeping me sane!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Question/m-p/478509#M178758</guid>
      <dc:creator />
      <dc:date>2013-06-17T14:52:21Z</dc:date>
    </item>
  </channel>
</rss>

