<?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 Getting A Count From Multiple Dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-A-Count-From-Multiple-Dimensions/m-p/779157#M1037491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HNY folks...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Got a painful task that's proving to be a bit of a pig to solve...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table that has 3 dimensions and an expression..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;OrderID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Warehouse&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Total Order Units&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Edinburgh&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;77.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Edinburgh&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jones&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;77.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Edinburgh&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Brown&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;77.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Ignore the logic of the data, the basic premise is that one order can sit in one warehouse, but have multiple customer names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression total (77.00) is the total order value - what I need to do, is to assume it's a straight split, so basically have the 77 split equally between all the Customers in the order (25.67)...given other orders will exist that have more (or less) customers, I need an expression that will count the customers per order per warehouse and divide the total order value....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Confused ?&amp;nbsp; Welcome to the club.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(Don't ask for a QVW as there isn't one &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2015 10:41:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-13T10:41:50Z</dc:date>
    <item>
      <title>Getting A Count From Multiple Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-A-Count-From-Multiple-Dimensions/m-p/779157#M1037491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HNY folks...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Got a painful task that's proving to be a bit of a pig to solve...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table that has 3 dimensions and an expression..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;OrderID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Warehouse&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Total Order Units&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Edinburgh&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;77.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Edinburgh&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jones&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;77.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Edinburgh&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Brown&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;77.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Ignore the logic of the data, the basic premise is that one order can sit in one warehouse, but have multiple customer names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression total (77.00) is the total order value - what I need to do, is to assume it's a straight split, so basically have the 77 split equally between all the Customers in the order (25.67)...given other orders will exist that have more (or less) customers, I need an expression that will count the customers per order per warehouse and divide the total order value....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Confused ?&amp;nbsp; Welcome to the club.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(Don't ask for a QVW as there isn't one &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 10:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-A-Count-From-Multiple-Dimensions/m-p/779157#M1037491</guid>
      <dc:creator />
      <dc:date>2015-01-13T10:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting A Count From Multiple Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-A-Count-From-Multiple-Dimensions/m-p/779158#M1037493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(total &amp;lt;OrderId&amp;gt; Customer) will bring you how much customers are in your Order, so you can divide your Total Unit Units by this value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 10:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-A-Count-From-Multiple-Dimensions/m-p/779158#M1037493</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-01-13T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting A Count From Multiple Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-A-Count-From-Multiple-Dimensions/m-p/779159#M1037494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Graeme,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use AVG() function for above requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AGGR(AVG(Order_Units),Customer,Warehouse)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 10:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-A-Count-From-Multiple-Dimensions/m-p/779159#M1037494</guid>
      <dc:creator>kiranmanoharrode</dc:creator>
      <dc:date>2015-01-13T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting A Count From Multiple Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-A-Count-From-Multiple-Dimensions/m-p/779160#M1037496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Clever &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;Nearly - but with a bit of tweaking I got there..&lt;/P&gt;&lt;P&gt; Count(TOTAL &amp;lt;Warehouse&amp;gt;Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer was limited to only that selection (ie OrderID 1 &amp;amp; Warehouse Edinburgh) - when you expanded back out to the full order id history, the count expanded to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks though - can't believe I missed that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 11:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-A-Count-From-Multiple-Dimensions/m-p/779160#M1037496</guid>
      <dc:creator />
      <dc:date>2015-01-13T11:05:53Z</dc:date>
    </item>
  </channel>
</rss>

