<?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 Calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236525#M87701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, i think you need to aggregate the items and then class them&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS(AGGR(SUM(NoOfSoldItems), CustomerID), 10)&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;COUNT(DISTINCT CustomerID)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 May 2010 21:36:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-10T21:36:54Z</dc:date>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236521#M87697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I am attempting to use a calculated dimension in a table. I would like this dimension to look at units sold (sum(unitssold)) and create categories by tens. So the first category in the would count the amount of "customers" who have sold 0-10 items. The next 11-20 and so on. My expression is count(Distinct CustomerID). How would I create this calculated demension?&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, 10 May 2010 15:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236521#M87697</guid>
      <dc:creator />
      <dc:date>2010-05-10T15:17:20Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236522#M87698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although it's a bit tedious, the easiest way I can think of (assuming you don't have too many sets of 10) is a nested IF statement:&lt;/P&gt;&lt;P&gt;If(count(Distinct CustomerID)&amp;lt;11, '0-10', If(count(Distinct CustomerID)&amp;lt;21,'11-20',IF.....)))&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 15:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236522#M87698</guid>
      <dc:creator />
      <dc:date>2010-05-10T15:21:03Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236523#M87699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jhoffman,&lt;/P&gt;&lt;P&gt;using if is an option but a bit tedious. So instead just create an inline table showing the intervals. Get the count(distict CustomerID) as count .then create the interval table using another inline and do a comparison using the interval atch function. The interval table looks like this.&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;count(distinct CustomerID) as count&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;interval:&lt;/P&gt;&lt;P&gt;CountStart Count End Interval&lt;/P&gt;&lt;P&gt;0 10 0-10&lt;/P&gt;&lt;P&gt;11 20 11-20&lt;/P&gt;&lt;P&gt;21 30 21-30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thenuse the interval matching function as given below&lt;/P&gt;&lt;P&gt;intervalmatch(Count) Load CountStart,CountEnd resident interval;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you,&lt;/P&gt;&lt;P&gt;Thanks Joseph.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 15:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236523#M87699</guid>
      <dc:creator />
      <dc:date>2010-05-10T15:35:15Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236524#M87700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Real dimensions are faster than calculated dimensions. So solving it during the load with nested IFs or a classification table and intervalmatch will give you better chart performance. But sometimes it's nice to have options, so here's a simple calculated dimension option that I think would work:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;class(count(distinct CustomerID),10)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 20:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236524#M87700</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-10T20:35:40Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236525#M87701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, i think you need to aggregate the items and then class them&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS(AGGR(SUM(NoOfSoldItems), CustomerID), 10)&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;COUNT(DISTINCT CustomerID)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 21:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236525#M87701</guid>
      <dc:creator />
      <dc:date>2010-05-10T21:36:54Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236526#M87702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whoops, yeah, you're right. My expression is useless without aggregating across customers, and CustomerID isn't what we're supposed to be counting in the aggr, only in the expression. Double oops.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 21:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/236526#M87702</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-10T21:44:21Z</dc:date>
    </item>
  </channel>
</rss>

