<?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 w/ Calculated Dimensions, what should expression look like? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/w-Calculated-Dimensions-what-should-expression-look-like/m-p/235317#M86580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to display loyalty by the latest year puchased vs. the number of years purchased.&lt;/P&gt;&lt;P&gt;I have 2 calculated dimensions in a pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(count(distinct Year),GrpEnt)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(max (Year),GrpEnt)&lt;/P&gt;&lt;P&gt;So, how should my expression look ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(aggr(max(Year),GrpEnt)) gives me a number that's in the ballpark, but Im not sure it's right?&lt;/P&gt;&lt;P&gt;I'd appreciate any help.&lt;/P&gt;&lt;P&gt;Thanks - Tim&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Oct 2010 18:12:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-12T18:12:15Z</dc:date>
    <item>
      <title>w/ Calculated Dimensions, what should expression look like?</title>
      <link>https://community.qlik.com/t5/QlikView/w-Calculated-Dimensions-what-should-expression-look-like/m-p/235317#M86580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to display loyalty by the latest year puchased vs. the number of years purchased.&lt;/P&gt;&lt;P&gt;I have 2 calculated dimensions in a pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(count(distinct Year),GrpEnt)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(max (Year),GrpEnt)&lt;/P&gt;&lt;P&gt;So, how should my expression look ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(aggr(max(Year),GrpEnt)) gives me a number that's in the ballpark, but Im not sure it's right?&lt;/P&gt;&lt;P&gt;I'd appreciate any help.&lt;/P&gt;&lt;P&gt;Thanks - Tim&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 18:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/w-Calculated-Dimensions-what-should-expression-look-like/m-p/235317#M86580</guid>
      <dc:creator />
      <dc:date>2010-10-12T18:12:15Z</dc:date>
    </item>
    <item>
      <title>w/ Calculated Dimensions, what should expression look like?</title>
      <link>https://community.qlik.com/t5/QlikView/w-Calculated-Dimensions-what-should-expression-look-like/m-p/235318#M86581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;It will probably give you the same result, but formula probably should be count(distinct GrpEnt) to how many GrpEnt are found in the grouping you making dynamically in the calculated dimensions for # of years and latest year. Since aggr() returns a list and the count returns the number of the GrpEnt 's in the list it will probably give you the same result, but it's simpler to use count(distinct GrpEnt).&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 05:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/w-Calculated-Dimensions-what-should-expression-look-like/m-p/235318#M86581</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-10-13T05:45:36Z</dc:date>
    </item>
    <item>
      <title>w/ Calculated Dimensions, what should expression look like?</title>
      <link>https://community.qlik.com/t5/QlikView/w-Calculated-Dimensions-what-should-expression-look-like/m-p/235319#M86582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Belated, thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 16:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/w-Calculated-Dimensions-what-should-expression-look-like/m-p/235319#M86582</guid>
      <dc:creator />
      <dc:date>2010-11-09T16:44:08Z</dc:date>
    </item>
  </channel>
</rss>

