<?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 using an expression(based on a dimension) as dimension for another expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270666#M584924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right, I should leave it sorted like that. Trying to sort it some other way wouldn't bring much, other than make it confusing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the fast replies!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2011 20:20:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-29T20:20:17Z</dc:date>
    <item>
      <title>using an expression(based on a dimension) as dimension for another expression</title>
      <link>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270659#M584914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlik and need help for a simple problem ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of transactions, with the fields client and object. So during a transaction a client buys a single object.&lt;/P&gt;&lt;P&gt;What I am trying to do is to create a bar chart showing how many people bought a number (in an interval) of distinct objects.&lt;/P&gt;&lt;P&gt;On the x axis I want to have the intervals, and on the y axis the amount of people for each amount of bought objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="problem.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/6484_problem.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The closest I got to solving this was by finding the class function. The only problem is that i have to pass a dimension to this function, whereas my dimension is actually an expression based on another dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate how many distinct objects a person bought I need clients as a dimension. And to calculate how many clients bought 10 distinct objects I need the previous expression as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the idea of trying to see the distribution is pretty basic, but I couldn't find a way to do it ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 21:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270659#M584914</guid>
      <dc:creator />
      <dc:date>2011-08-12T21:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: using an expression(based on a dimension) as dimension for another expression</title>
      <link>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270660#M584915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would expect something like this to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dimension&amp;nbsp; = aggr(class(count(distinct Object),10,'Objects'),Person)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;expression = count(distinct Person)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't, I'll figure it out by working up an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 21:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270660#M584915</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-12T21:34:33Z</dc:date>
    </item>
    <item>
      <title>using an expression(based on a dimension) as dimension for another expression</title>
      <link>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270661#M584917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! It is working perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270661#M584917</guid>
      <dc:creator />
      <dc:date>2011-08-16T15:04:31Z</dc:date>
    </item>
    <item>
      <title>using an expression(based on a dimension) as dimension for another expression</title>
      <link>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270662#M584918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In same scenario I am now trying to make the chart show me the bell curve for the sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am taking as a dimension aggr(count(distinct Object)), without using the class function.&lt;/P&gt;&lt;P&gt;But for the expression I can't use the normdist function since this is not cumulative.&lt;/P&gt;&lt;P&gt;I have tried writing a couple of distributions by hand but the results weren't that bell-curve-looking.&lt;/P&gt;&lt;P&gt;Count(distinct Person) by itself looks more like a bell curve than the attempts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it somehow possible just to sort the chart in such a way that it shows the bell curve, rather than changing the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 14:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270662#M584918</guid>
      <dc:creator />
      <dc:date>2011-08-29T14:39:29Z</dc:date>
    </item>
    <item>
      <title>using an expression(based on a dimension) as dimension for another expression</title>
      <link>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270663#M584919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;EM&gt;aggr(count(distinct Object), Person)&lt;/EM&gt; as dimension and &lt;EM&gt;Count(distinct Person)&lt;/EM&gt; as expression should do the trick to show you the distribution. Check the sort of dimension in sort tab, I think it should be numerical only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But maybe you actually don't get a bell curve? For example, if most customer buy only one Object and the probability of a customer buying 2,3,4,5,6.. is dropping (what I would expect, but don't know in your case), you won't get a bell curve. Hm, I just want to say that not every distribution follows a bell curve distribution (gaussian).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 15:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270663#M584919</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-29T15:17:48Z</dc:date>
    </item>
    <item>
      <title>using an expression(based on a dimension) as dimension for another expression</title>
      <link>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270664#M584920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;I think &lt;EM&gt;aggr(count(distinct Object), Person)&lt;/EM&gt; as dimension and &lt;EM&gt;Count(distinct Person)&lt;/EM&gt; as expression should do the trick to show you the distribution. Check the sort of dimension in sort tab, I think it should be numerical only. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also think that that dimension and expression should do it, but the sort tab does't give me any option other than ascending/descending. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;But maybe you actually don't get a bell curve? For example, if most customer buy only one Object and the probability of a customer buying 2,3,4,5,6.. is dropping (what I would expect, but don't know in your case), you won't get a bell curve. Hm, I just want to say that not every distribution follows a bell curve distribution (gaussian).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand what you are saying, and indeed in the end it may not be a gaussan distribution. &lt;/P&gt;&lt;P&gt;But I think that for a decent amout of input it will gradually get a bell form. Already for a relatvely small sample, sorted acending (-_-) i get a nice steady curve!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 16:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270664#M584920</guid>
      <dc:creator />
      <dc:date>2011-08-29T16:00:28Z</dc:date>
    </item>
    <item>
      <title>using an expression(based on a dimension) as dimension for another expression</title>
      <link>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270665#M584922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would assume that sorting number of object Sales in ascending order would be ok? Like having a x-Axis from 0 to max number of Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you like it to be sorted?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 16:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270665#M584922</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-29T16:04:40Z</dc:date>
    </item>
    <item>
      <title>using an expression(based on a dimension) as dimension for another expression</title>
      <link>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270666#M584924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right, I should leave it sorted like that. Trying to sort it some other way wouldn't bring much, other than make it confusing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the fast replies!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 20:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-an-expression-based-on-a-dimension-as-dimension-for/m-p/270666#M584924</guid>
      <dc:creator />
      <dc:date>2011-08-29T20:20:17Z</dc:date>
    </item>
  </channel>
</rss>

