<?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: Sum(TOTAL&amp;lt;dim&amp;gt;Value) in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-TOTAL-lt-dim-gt-Value-in-pivot-table/m-p/69389#M11430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum(TOTAL Aggr(Sum({&amp;lt;Dim1 = {'Revenues'} &amp;gt;} Value), Region))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So first you are aggregating the Sum value by region Revenues then you are doing a TOTAL of that Revenues. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2018 14:25:33 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2018-04-20T14:25:33Z</dc:date>
    <item>
      <title>Sum(TOTAL&lt;dim&gt;Value) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-TOTAL-lt-dim-gt-Value-in-pivot-table/m-p/69388#M11429</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;I have a question about the result that gives me the Sum(TOTAL &amp;lt;dim&amp;gt; Value) function in pivot table.&lt;/P&gt;&lt;P&gt;I have data as follow:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/200326_pastedImage_13.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Now I want to present the Revenues value in comparison to other Dim1 values. It should consider the Region. I use the expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Dim1&lt;/SPAN&gt;={'Revenues'}&amp;gt;}&lt;SPAN style="color: #0000ff;"&gt;total&lt;/SPAN&gt; &amp;lt;&lt;SPAN style="color: #800000;"&gt;Region&lt;/SPAN&gt;&amp;gt; &lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When the pivot tabel is fully collapsed or fully expanded I get the expected result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/200328_pastedImage_15.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/200329_pastedImage_16.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The problem is when Dim1 is partly expanded - then the expression returns 0 for the collapsed values:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/200330_pastedImage_17.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Why is it happen?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is there a way to present the values properly? How should I correct my expression? (I expected the result of 3000 instead of 0 when the table is not fully expanded)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The source data are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Dim1, Region, Value&lt;BR /&gt; Revenues, South, 1000&lt;BR /&gt; Revenues, North, 2000&lt;BR /&gt; Costs, South, 200&lt;BR /&gt; Costs, North, 500&lt;BR /&gt; Financial Result, South, 800&lt;BR /&gt; Financial Result, North, 1500&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks for any help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Joanna&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 09:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-TOTAL-lt-dim-gt-Value-in-pivot-table/m-p/69388#M11429</guid>
      <dc:creator>jmur0000</dc:creator>
      <dc:date>2018-04-20T09:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(TOTAL&lt;dim&gt;Value) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-TOTAL-lt-dim-gt-Value-in-pivot-table/m-p/69389#M11430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum(TOTAL Aggr(Sum({&amp;lt;Dim1 = {'Revenues'} &amp;gt;} Value), Region))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So first you are aggregating the Sum value by region Revenues then you are doing a TOTAL of that Revenues. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 14:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-TOTAL-lt-dim-gt-Value-in-pivot-table/m-p/69389#M11430</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-04-20T14:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(TOTAL&lt;dim&gt;Value) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-TOTAL-lt-dim-gt-Value-in-pivot-table/m-p/69390#M11431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your reply. Unfortunatelly the solution with AGGR function doesn't work as expected. It shows the same value of revenues regardless the dimension.&lt;/P&gt;&lt;P&gt;Your solution gives the result:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201624_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;But I expect it to look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/201625_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;But the problem is that the values disappear when I collapse the Region dimension like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/201650_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 07:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-TOTAL-lt-dim-gt-Value-in-pivot-table/m-p/69390#M11431</guid>
      <dc:creator>jmur0000</dc:creator>
      <dc:date>2018-05-07T07:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(TOTAL&lt;dim&gt;Value) in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-TOTAL-lt-dim-gt-Value-in-pivot-table/m-p/69391#M11432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(NODISTINCT Sum({&amp;lt;Dim1={'Revenues'}&amp;gt;}TOTAL &amp;lt;Region&amp;gt; Value), Region))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201725_Capture.PNG" style="height: 81px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 16:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-TOTAL-lt-dim-gt-Value-in-pivot-table/m-p/69391#M11432</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-07T16:38:10Z</dc:date>
    </item>
  </channel>
</rss>

