<?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: set analysis total by dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209356#M388192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've tried that and it works only if I use a straight table.&lt;/P&gt;&lt;P&gt;Do you have any ideia why that doesn't work in a pivot table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2016 11:34:18 GMT</pubDate>
    <dc:creator>slribeiro</dc:creator>
    <dc:date>2016-10-10T11:34:18Z</dc:date>
    <item>
      <title>set analysis total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209354#M388190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm here with some issue in set analysis.&lt;/P&gt;&lt;P&gt;Imagine I want the following table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ProductType&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Country&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Total Sales by Country&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;US&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;China&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;150&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Australia&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Greece&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;40000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;China&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Australia&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Greece&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;40000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate Sales we use the regular sum({$&amp;lt;year={$(=max(year))}&amp;gt;} Sales), but I need help to calculate the Total Sales by Country.&lt;/P&gt;&lt;P&gt;The thing is to calculate something similar to &lt;SPAN style="font-size: 13.3333px;"&gt;sum({$&amp;lt;year={$(=max(year))}&amp;gt;} total Sales) but by country.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 11:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209354#M388190</guid>
      <dc:creator>slribeiro</dc:creator>
      <dc:date>2016-10-10T11:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209355#M388191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;year={$(=max(year))}&amp;gt;} TOTAL &lt;SPAN style="color: #ff0000;"&gt;&amp;lt;Country&amp;gt;&lt;/SPAN&gt; Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 11:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209355#M388191</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T11:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209356#M388192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've tried that and it works only if I use a straight table.&lt;/P&gt;&lt;P&gt;Do you have any ideia why that doesn't work in a pivot table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 11:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209356#M388192</guid>
      <dc:creator>slribeiro</dc:creator>
      <dc:date>2016-10-10T11:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209357#M388193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should still work, would you be able to share a sample where this isn't working in a pivot table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 11:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209357#M388193</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T11:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209358#M388194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens is that it only works if you have your pivot table fully expanded.&lt;/P&gt;&lt;P&gt;I attached a sample I've just made for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 12:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209358#M388194</guid>
      <dc:creator>slribeiro</dc:creator>
      <dc:date>2016-10-10T12:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209359#M388195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want your table to display when it isn't expanded?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 12:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209359#M388195</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T12:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209360#M388196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(rangemax(above(sum(sales)),0,rowno())),country)......for country wise sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;rangemax(above( TOTAL sum(sales)),0,rowno(TOTAL))) for consolidated sales...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 13:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209360#M388196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-10T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209361#M388197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140166_Screenshot_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I this first situation all the values are correct because the second column has the total of sales for each country, but if you reduce or select one TypeProduct your values will be wrong as the ideia would be to maintain the same values above&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/140167_Screenshot_2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 15:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209361#M388197</guid>
      <dc:creator>slribeiro</dc:creator>
      <dc:date>2016-10-10T15:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209362#M388198</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;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Sum({&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;year={$(=max(year))}&amp;gt;} TOTAL &amp;lt;countrydesc&amp;gt; Sales), TypeProduct, countrydesc))&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/140161_Capture.PNG" style="height: 76px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum(Aggr(Sum({&amp;lt;year={$(=max(year))}&lt;SPAN style="color: #ff0000;"&gt;, TypeProduct&lt;/SPAN&gt;&amp;gt;} TOTAL &amp;lt;countrydesc&amp;gt; Sales), TypeProduct, countrydesc))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 15:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-total-by-dimension/m-p/1209362#M388198</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-10T15:04:40Z</dc:date>
    </item>
  </channel>
</rss>

