<?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: Aggregating the Values Dimension Totals Wise in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052972#M353261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;Year, Month&amp;gt;}&lt;/STRONG&gt;&lt;/STRONG&gt;Value1)/Sum(TOTAL &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;lt;Employee&amp;gt;&lt;/SPAN&gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;Year, Month&amp;gt;} &lt;/STRONG&gt;&lt;/STRONG&gt;Value1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 18:05:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-10T18:05:54Z</dc:date>
    <item>
      <title>Aggregating the Values Dimension Totals Wise</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052968#M353257</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;How can we calculate the Values using the totals of second dimensions :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sum Total 2.PNG" class="jive-image image-1" src="/legacyfs/online/123255_Sum Total 2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression columns in the above Pivot are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt; = &lt;SPAN style="color: #000000;"&gt;Sum(Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum TOTAL Value&lt;/STRONG&gt; = S&lt;SPAN style="color: #000000;"&gt;um(Value) / Sum(TOTAL Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above "&lt;STRONG&gt;Sum Total Value&lt;/STRONG&gt;" expression is calculating as per the Total value of Employee Dimension,&lt;/P&gt;&lt;P&gt;Example, For State_Id 1, it would be : 100 / 3100 = 0.03&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For &lt;SPAN style="font-size: 13.3333px;"&gt;State_Id 2, it is : 400 / 3100 = 0.13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what is required is that the values must be calculated as per Totals of State_Id&lt;/P&gt;&lt;P&gt;ie, &lt;SPAN style="font-size: 13.3333px;"&gt;State_Id 1 in "Sum TOTAL Value" should be &lt;SPAN style="color: #000000;"&gt;100 / 500 = 0.2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;State_Id 2 in &lt;SPAN style="font-size: 13.3333px;"&gt;"Sum TOTAL Value" should be &lt;/SPAN&gt;be &lt;SPAN style="color: #000000;"&gt;400 / 500 = 0.8.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, PFA of the Test Application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Umar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052968#M353257</guid>
      <dc:creator>umartareen</dc:creator>
      <dc:date>2016-05-02T07:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating the Values Dimension Totals Wise</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052969#M353258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Value1)/Sum(TOTAL &lt;SPAN style="color: #ff0000;"&gt;&amp;lt;Employee&amp;gt;&lt;/SPAN&gt; Value1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123252_Capture.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You basically need to tell the TOTAL qualifier about the field where you want to total on. By just using the TOTAL, it was doing the overall total. When I add &amp;lt;Employee&amp;gt;, it started doing total per Employee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052969#M353258</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-02T07:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating the Values Dimension Totals Wise</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052970#M353259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works Perfect !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052970#M353259</guid>
      <dc:creator>umartareen</dc:creator>
      <dc:date>2016-05-02T07:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating the Values Dimension Totals Wise</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052971#M353260</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;How can this be achieved while using set expressions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets take an example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Year, Month&amp;gt;} Value1) / Sum(TOTAL &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;Year, Month&amp;gt;}&lt;/STRONG&gt; Value1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Umar&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 18:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052971#M353260</guid>
      <dc:creator>umartareen</dc:creator>
      <dc:date>2016-05-10T18:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating the Values Dimension Totals Wise</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052972#M353261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;Year, Month&amp;gt;}&lt;/STRONG&gt;&lt;/STRONG&gt;Value1)/Sum(TOTAL &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;lt;Employee&amp;gt;&lt;/SPAN&gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;Year, Month&amp;gt;} &lt;/STRONG&gt;&lt;/STRONG&gt;Value1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 18:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052972#M353261</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-10T18:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating the Values Dimension Totals Wise</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052973#M353262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&amp;lt;Employee&amp;gt; &lt;/STRONG&gt;{&amp;lt;Year, Month&amp;gt;} Value1) / Sum(TOTAL &lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&amp;lt;Employee&amp;gt; &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;Year, Month&amp;gt;}&lt;/STRONG&gt; Value1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Umar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 18:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052973#M353262</guid>
      <dc:creator>umartareen</dc:creator>
      <dc:date>2016-05-10T18:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating the Values Dimension Totals Wise</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052974#M353263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;umar khan wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Solved it !&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&amp;lt;Employee&amp;gt; &lt;/STRONG&gt;{&amp;lt;Year, Month&amp;gt;} Value1) / Sum(TOTAL &lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&amp;lt;Employee&amp;gt; &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit;"&gt;{&amp;lt;Year, Month&amp;gt;}&lt;/STRONG&gt; Value1)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Umar&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This isn't right, are you getting the right results? Should be this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;STRONG style="font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;{&amp;lt;Year, Month&amp;gt;}&lt;/STRONG&gt;&lt;/STRONG&gt;Value1)/Sum(TOTAL &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&amp;lt;Employee&amp;gt;&lt;/SPAN&gt; &lt;STRONG style="font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;{&amp;lt;Year, Month&amp;gt;} &lt;/STRONG&gt;&lt;/STRONG&gt;Value1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without &amp;lt;Employee&amp;gt; in the numerator&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 18:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1052974#M353263</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-10T18:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating the Values Dimension Totals Wise</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1729972#M452236</link>
      <description>&lt;P&gt;This is awesome, thanks... didnt realise i could use a pivot and sub totals like this.&lt;/P&gt;&lt;P&gt;Nice work, thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 15:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-the-Values-Dimension-Totals-Wise/m-p/1729972#M452236</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2020-07-22T15:26:36Z</dc:date>
    </item>
  </channel>
</rss>

