<?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 Aggregate by and repeat its total for instance of a dimension value (Pivot Table) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1611163#M45431</link>
    <description>&lt;P&gt;We're struggling trying to achieve something that may not even be possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See screenshot attached where I have mocked the data for the current and expected results.&lt;/P&gt;&lt;P&gt;For all instances of a product, we need to repeat the overall "total unit" sold for that product without affecting the grand total:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"Kinder Bueno" = 21 (13 + 8 )&lt;/LI&gt;&lt;LI&gt;"Cheese &amp;amp; Ham Panini" = 5 (5)&lt;/LI&gt;&lt;LI&gt;Grand total = 26 (21 + 5)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Are we missing anything in the expression? With "Aggr" it didn't work either.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum({&amp;lt;fact_type={'facts_product'}&amp;gt;} total &amp;lt;Category, Product&amp;gt; units_sold)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aggregation_issue.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16814i9EAB79C4F23375BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="aggregation_issue.jpg" alt="aggregation_issue.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 14:04:22 GMT</pubDate>
    <dc:creator>JSDEV</dc:creator>
    <dc:date>2019-08-09T14:04:22Z</dc:date>
    <item>
      <title>Aggregate by and repeat its total for instance of a dimension value (Pivot Table)</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1611163#M45431</link>
      <description>&lt;P&gt;We're struggling trying to achieve something that may not even be possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See screenshot attached where I have mocked the data for the current and expected results.&lt;/P&gt;&lt;P&gt;For all instances of a product, we need to repeat the overall "total unit" sold for that product without affecting the grand total:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"Kinder Bueno" = 21 (13 + 8 )&lt;/LI&gt;&lt;LI&gt;"Cheese &amp;amp; Ham Panini" = 5 (5)&lt;/LI&gt;&lt;LI&gt;Grand total = 26 (21 + 5)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Are we missing anything in the expression? With "Aggr" it didn't work either.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum({&amp;lt;fact_type={'facts_product'}&amp;gt;} total &amp;lt;Category, Product&amp;gt; units_sold)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aggregation_issue.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16814i9EAB79C4F23375BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="aggregation_issue.jpg" alt="aggregation_issue.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 14:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1611163#M45431</guid>
      <dc:creator>JSDEV</dc:creator>
      <dc:date>2019-08-09T14:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by and repeat its total for instance of a dimension value (Pivot Table)</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1611164#M45432</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Dimensionality() = 0,
  Sum({&amp;lt;fact_type = {'facts_product'}&amp;gt;} units_sold),
  Sum({&amp;lt;fact_type = {'facts_product'}&amp;gt;} TOTAL &amp;lt;Category, Product&amp;gt; units_sold)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Aug 2019 13:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1611164#M45432</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-09T13:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by and repeat its total for instance of a dimension value (Pivot Table)</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1611178#M45435</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;, thanks the reply. We do use "Dimensionality() = 0" (sorry for not posting the full formula).&lt;/P&gt;&lt;P&gt;We noticed it works when the product filter is selected but not the other way around. I'll try to mock what's happening in my next reply.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 14:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1611178#M45435</guid>
      <dc:creator>JSDEV</dc:creator>
      <dc:date>2019-08-09T14:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by and repeat its total for instance of a dimension value (Pivot Table)</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1611182#M45437</link>
      <description>&lt;P&gt;I think a simple sample might help us see what you have and you can point all the numbers which needs to look different.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 14:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1611182#M45437</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-09T14:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by and repeat its total for instance of a dimension value (Pivot Table)</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1612806#M45618</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for the delay, we were busy trying to fix that by changing the way the fact table was structure and we've had no success.&lt;/P&gt;&lt;P&gt;See update sampled below which also mocks our transacional and fact tables. I've omitted other measures and left just one product to keep things a simple.&lt;/P&gt;&lt;P&gt;The main driving dimension is the one named "Special" but the report also needs to be sliceable by "Category",&amp;nbsp;"Product" and "Store" dimensions.&lt;/P&gt;&lt;P&gt;For every instance of the "Cheese and &amp;amp; Ham", we expect to see 13 units sold as seen in the "Transacional: Sales"&amp;nbsp; table but the result of the aggregation is double counted.&lt;BR /&gt;&lt;BR /&gt;Any idea how to fix that through Qlik Sense aggregations? Any other suggestion?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17089i7F5337B6CA6681A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 10:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-by-and-repeat-its-total-for-instance-of-a-dimension/m-p/1612806#M45618</guid>
      <dc:creator>JSDEV</dc:creator>
      <dc:date>2019-08-15T10:56:22Z</dc:date>
    </item>
  </channel>
</rss>

