<?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: Partial aggregations within dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-aggregations-within-dimensions/m-p/785992#M1030962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot jonathan. It works perfectly! Appreciate that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2015 07:31:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-29T07:31:03Z</dc:date>
    <item>
      <title>Partial aggregations within dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-aggregations-within-dimensions/m-p/785990#M1030960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing an issue in qlikview regarding aggregations within hierarchical fields. Following is the illustration of the same -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following table -&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76541_Capture1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this table i need to create a table wherein the share of each brand in its corresponding market will be calculated. Basically it should contain only Brand as a dimension and share% as an expression. For ex- the B1 should have value - sum(B1)/sum(M1) i.e 10/(10+30+40)=10/80=12.5%. Similar case for other brands that calculates the share of the brand in its market.&lt;/P&gt;&lt;P&gt; Currently I am using this expression-&amp;nbsp; Sum(Sales)/Sum(TOTAL &amp;lt;Market&amp;gt;{&amp;lt;Market=p(Market),Brand={*}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this expression works only when a Brand is selected by me. However when Brand is not selected, it is taking the total value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me with this problem. Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 05:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-aggregations-within-dimensions/m-p/785990#M1030960</guid>
      <dc:creator />
      <dc:date>2015-01-29T05:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Partial aggregations within dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-aggregations-within-dimensions/m-p/785991#M1030961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This will work:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(Sales) / Sum(TOTAL &amp;lt;Market&amp;gt; Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if Brand and Market are both dimensions. TOTAL works in the context of a dimension in the chart (or in an Aggr() expression), but you want Brand only as a dimension. You have two options&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Straight table - Market can be a dimension that is hidden. Use the expression above with Market and Brand as dimensions, and Market is hidden. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Pivot table - you cant hide a dimension in a pivot table, so use this expression in a pivot with only Brand as a dimension:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Sales) / Sum(Aggr(Sum(TOTAL &amp;lt;Market&amp;gt; Sales), Market, Brand))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 06:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-aggregations-within-dimensions/m-p/785991#M1030961</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-01-29T06:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Partial aggregations within dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-aggregations-within-dimensions/m-p/785992#M1030962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot jonathan. It works perfectly! Appreciate that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 07:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-aggregations-within-dimensions/m-p/785992#M1030962</guid>
      <dc:creator />
      <dc:date>2015-01-29T07:31:03Z</dc:date>
    </item>
  </channel>
</rss>

