<?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: Qlik Sense Pivot Table Aggregation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Pivot-Table-Aggregation/m-p/1809083#M65907</link>
    <description>&lt;P&gt;Thank you, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48554"&gt;@brunobertels&lt;/a&gt;&amp;nbsp;! This helps solve my initial problem.&amp;nbsp; I am able to assign dimensionality based on the order of dimensions in the Pivot table.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My new issue is that if the order of the dimensions is changed then the calculation errors.&amp;nbsp; Is there a way to assign dimensions based on order, similar to Column(1), Column(2) for measures?&lt;BR /&gt;&lt;BR /&gt;Ex: Dimension Order:&amp;nbsp; VP_Name, Branch, Product&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reordered Dimension:&amp;nbsp; &amp;nbsp; VP_Name, Product, Branch&lt;BR /&gt;&lt;BR /&gt;Please let me know if this question makes sense?&lt;/P&gt;</description>
    <pubDate>Wed, 19 May 2021 14:27:51 GMT</pubDate>
    <dc:creator>Gabe_Miller</dc:creator>
    <dc:date>2021-05-19T14:27:51Z</dc:date>
    <item>
      <title>Qlik Sense Pivot Table Aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Pivot-Table-Aggregation/m-p/1808742#M65869</link>
      <description>&lt;P&gt;Hello, I have been asked to update an existing Pivot table to show an aggregation percent at each level.&amp;nbsp; I have attached an example of what the table currently looks like, and what the desired view is as well.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Current calculation for % of Sales:&lt;BR /&gt;&lt;BR /&gt;Sum(Aggr(Sales{&amp;lt;Date = {"&amp;gt;=$(=Date(MonthStart(Today())))&amp;lt;=$(=Date(Today()))"}&amp;gt;}Sales),[VP Name],Branch))&lt;BR /&gt;/&lt;BR /&gt;Sum(Total{&amp;lt;Date = {"&amp;gt;=$(=Date(MonthStart(Today())))&amp;lt;=$(=Date(Today()))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="QS Pivot Example.png" style="width: 785px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55199iAEAAE38027F9AC6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="QS Pivot Example.png" alt="QS Pivot Example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to get the aggregation of the branches to sum up at a VP level. So VP S has 15.9% of total sales and branch 30 has 3.9% of Total Sales.&amp;nbsp; But I would like to have this Pivot Table show Branch 30 as 24.4% of sales for&amp;nbsp; VP S (103,692.63/424,618.66) instead.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is it possible to have both aggregation layers show without having to select a VP Name to adjust the 'Total' sales amount?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 21:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Pivot-Table-Aggregation/m-p/1808742#M65869</guid>
      <dc:creator>Gabe_Miller</dc:creator>
      <dc:date>2021-12-21T21:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Pivot Table Aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Pivot-Table-Aggregation/m-p/1808953#M65889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure to understand your need but it seems who want the % of VP Name sales on TOTAL Sales and % of Branch sales on total sales PER VP Name in the same mesure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I Wright ? if so you can use dimentionnality () to do that with an if statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here a simple exemple :&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=1,&lt;/P&gt;&lt;P&gt;sum(Volume)&lt;BR /&gt;/&lt;BR /&gt;sum(total Volume), // it will divide sum sales per TOTAL sum Sales then&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(Volume)&lt;BR /&gt;/&lt;BR /&gt;sum(total &amp;lt;DIM2&amp;gt; Volume) // it wil divide sales per Sub Total per DIM2 ( branch for you )&amp;nbsp;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hopt it helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Pivot-Table-Aggregation/m-p/1808953#M65889</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2021-05-19T10:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Pivot Table Aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Pivot-Table-Aggregation/m-p/1809083#M65907</link>
      <description>&lt;P&gt;Thank you, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48554"&gt;@brunobertels&lt;/a&gt;&amp;nbsp;! This helps solve my initial problem.&amp;nbsp; I am able to assign dimensionality based on the order of dimensions in the Pivot table.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My new issue is that if the order of the dimensions is changed then the calculation errors.&amp;nbsp; Is there a way to assign dimensions based on order, similar to Column(1), Column(2) for measures?&lt;BR /&gt;&lt;BR /&gt;Ex: Dimension Order:&amp;nbsp; VP_Name, Branch, Product&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reordered Dimension:&amp;nbsp; &amp;nbsp; VP_Name, Product, Branch&lt;BR /&gt;&lt;BR /&gt;Please let me know if this question makes sense?&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 14:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Pivot-Table-Aggregation/m-p/1809083#M65907</guid>
      <dc:creator>Gabe_Miller</dc:creator>
      <dc:date>2021-05-19T14:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Pivot Table Aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Pivot-Table-Aggregation/m-p/1809133#M65910</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;it makes sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will be able to rearrange your mesure depending of the order of the dimension using getObjectDimension() function&amp;nbsp;&lt;/P&gt;&lt;P&gt;this function give the name of the dimension according to his index&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it will be someting like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(GetObjectDimension(Dimensionality()-1) ='&lt;SPAN&gt;Branch&lt;/SPAN&gt;', YourMesureForBranchHere , YourMesureForProductHere)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GetObjectDimension(Dimensionality()-1) will give you the Name of the second dimention in your PivotTable&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 15:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Pivot-Table-Aggregation/m-p/1809133#M65910</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2021-05-19T15:33:54Z</dc:date>
    </item>
  </channel>
</rss>

