<?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 Dividing by a count ignoring a dimension expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dividing-by-a-count-ignoring-a-dimension-expression/m-p/1683803#M727634</link>
    <description>&lt;P&gt;Hello,&amp;nbsp; I have a stacked chart with has two dimensions.&lt;BR /&gt;&lt;BR /&gt;Order Month and then a sum of the spend to group by bands&lt;BR /&gt;&lt;BR /&gt;= Aggr( if(Sum(spend)&amp;lt;3000,dual('0-3k',1), if(Sum(spend)&amp;lt;=10000,dual('3k-10k',2), if(Sum(spend)&amp;lt;=100000,dual('10k-100k',3), if(Sum(spend)&amp;lt;=300000,dual('100k-300k',4), dual('300k+',5))))),OrderNumber)&lt;BR /&gt;&lt;BR /&gt;I then have an expression sum(spend) which gives me a stacked chart showing the amount of spend by the amount of the order.&amp;nbsp; I want to be able to divide this by the total count of OrderNumber.&lt;BR /&gt;&lt;BR /&gt;Any ideas&amp;nbsp; ie if I had three orders, two at 20 and one at 10.&amp;nbsp; It would do a bar 20 / 3 and then stacked on top 10 / 3??&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>bazzaonline</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Dividing by a count ignoring a dimension expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-by-a-count-ignoring-a-dimension-expression/m-p/1683803#M727634</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; I have a stacked chart with has two dimensions.&lt;BR /&gt;&lt;BR /&gt;Order Month and then a sum of the spend to group by bands&lt;BR /&gt;&lt;BR /&gt;= Aggr( if(Sum(spend)&amp;lt;3000,dual('0-3k',1), if(Sum(spend)&amp;lt;=10000,dual('3k-10k',2), if(Sum(spend)&amp;lt;=100000,dual('10k-100k',3), if(Sum(spend)&amp;lt;=300000,dual('100k-300k',4), dual('300k+',5))))),OrderNumber)&lt;BR /&gt;&lt;BR /&gt;I then have an expression sum(spend) which gives me a stacked chart showing the amount of spend by the amount of the order.&amp;nbsp; I want to be able to divide this by the total count of OrderNumber.&lt;BR /&gt;&lt;BR /&gt;Any ideas&amp;nbsp; ie if I had three orders, two at 20 and one at 10.&amp;nbsp; It would do a bar 20 / 3 and then stacked on top 10 / 3??&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-by-a-count-ignoring-a-dimension-expression/m-p/1683803#M727634</guid>
      <dc:creator>bazzaonline</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing by a count ignoring a dimension expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-by-a-count-ignoring-a-dimension-expression/m-p/1683805#M727635</link>
      <description>&lt;P&gt;May be just this&lt;/P&gt;&lt;P&gt;Count(TOTAL OrderNumber) or&amp;nbsp;Count(DISTINCT TOTAL OrderNumber)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 14:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-by-a-count-ignoring-a-dimension-expression/m-p/1683805#M727635</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-11T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing by a count ignoring a dimension expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-by-a-count-ignoring-a-dimension-expression/m-p/1683809#M727636</link>
      <description>&lt;P&gt;I tried sum(spend)/count(Distinct Total ordernumber) and the result is much to low?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 14:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-by-a-count-ignoring-a-dimension-expression/m-p/1683809#M727636</guid>
      <dc:creator>bazzaonline</dc:creator>
      <dc:date>2020-03-11T14:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing by a count ignoring a dimension expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-by-a-count-ignoring-a-dimension-expression/m-p/1683854#M727637</link>
      <description>&lt;P&gt;How about&amp;nbsp;&lt;SPAN&gt;sum(spend)/count(Total ordernumber)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-by-a-count-ignoring-a-dimension-expression/m-p/1683854#M727637</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-11T15:30:22Z</dc:date>
    </item>
  </channel>
</rss>

