<?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: Counting in an expression based on dimension not in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680375#M246695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in that case you have to substitute&amp;nbsp; 'Expression%' by your expression. But I'm not sure if you really want this. Cause in your chart the only thing that is shown are the names of the outstanding customers, then!?!&lt;/P&gt;&lt;P&gt;A straight table would be much more adequate for this scenario...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2014 18:54:17 GMT</pubDate>
    <dc:creator>veidlburkhard</dc:creator>
    <dc:date>2014-07-15T18:54:17Z</dc:date>
    <item>
      <title>Counting in an expression based on dimension not in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680371#M246691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart right now that has one dimension (lets say it's [Profit Center]) and an expression that is defined as:&lt;/P&gt;&lt;P&gt;sum([Standard Gross Margin]) / sum([Net Sales]).&amp;nbsp; This gives me a chart by Profit Center of a percentage.&amp;nbsp; Looks great.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, now I want to add another expression to this chart.&amp;nbsp; For each Profit Center, I want to have a count of when a Customer's percentage who is "in" that [Profit Center] (defined the same as above, but done by Customer not Profit Center) is greater than the percentage of a profit center.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Data:&lt;/P&gt;&lt;P&gt;Profit Center&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression %&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Data with Customer included:&lt;/P&gt;&lt;P&gt;Profit Center&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 79&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 83&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 90&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 51&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart, we would see 3 data points of Profit Center A, B and C with 80,50 and 20 graphed respectively.&amp;nbsp; Then I would want a split axes of 2, 1 and 1 graphed since the count of Customer A's percentage that is above 80 is 2 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data examples above are not individual tables, just an example of how we want to calculate the %.&amp;nbsp; The data for each expression resides in one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried Aggr and other functions to no avail.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 15:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680371#M246691</guid>
      <dc:creator />
      <dc:date>2014-07-15T15:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Counting in an expression based on dimension not in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680372#M246692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do it like this. See the picture below&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;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 16:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680372#M246692</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2014-07-15T16:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting in an expression based on dimension not in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680373#M246693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Adam, could not upload the picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I will explain the solution.&lt;/P&gt;&lt;P&gt;Add a second epression: Concat(If(% &amp;gt; Expression%,Customer), ',')&lt;/P&gt;&lt;P&gt;Uncheck the 'Bar' check box and mark the 'Values on Datapoints'. For your first expression make sure that the 'Values on Datapoints' check box is not marked.&lt;/P&gt;&lt;P&gt;This gives you the number of outstanding customers on top of the bars that show the expression% of the Profit Centers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 16:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680373#M246693</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2014-07-15T16:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Counting in an expression based on dimension not in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680374#M246694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Burkhard. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think part of the trouble I'm having is being the expression that calculates the % by customer to compare it to the original % by Profit Center. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't actually have that % shown in the second table.&amp;nbsp; I basically need to calculate that in the expression and then compare it to the expression used to calculate % by Profit Center.&amp;nbsp; That make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 16:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680374#M246694</guid>
      <dc:creator />
      <dc:date>2014-07-15T16:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Counting in an expression based on dimension not in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680375#M246695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in that case you have to substitute&amp;nbsp; 'Expression%' by your expression. But I'm not sure if you really want this. Cause in your chart the only thing that is shown are the names of the outstanding customers, then!?!&lt;/P&gt;&lt;P&gt;A straight table would be much more adequate for this scenario...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 18:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-in-an-expression-based-on-dimension-not-in-chart/m-p/680375#M246695</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2014-07-15T18:54:17Z</dc:date>
    </item>
  </channel>
</rss>

