<?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 Calculate % in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate/m-p/2494227#M1226265</link>
    <description>&lt;P&gt;I am adding a tooltip to my map visual. How do I calculate the % amount each country holds for its region? I have to use total and aggr function.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 17:29:16 GMT</pubDate>
    <dc:creator>Strwbryshwty</dc:creator>
    <dc:date>2024-11-22T17:29:16Z</dc:date>
    <item>
      <title>Calculate %</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate/m-p/2494227#M1226265</link>
      <description>&lt;P&gt;I am adding a tooltip to my map visual. How do I calculate the % amount each country holds for its region? I have to use total and aggr function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 17:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate/m-p/2494227#M1226265</guid>
      <dc:creator>Strwbryshwty</dc:creator>
      <dc:date>2024-11-22T17:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate %</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate/m-p/2494232#M1226266</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There's not much information in your request, it'd depend on your data model, but yes, it's usually done by using "total".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;country = {'Brazil'}&amp;gt;} value)&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;Sum(Total value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a field for the region, let's say, america, you could divide by the region like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;country = {'Brazil'}&amp;gt;} value)&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;region = {'South America'}&amp;gt;})&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a dimension plotted, let's say, in a table, then you obviously won't have to set analysis the country and the dimension will do that for you, so you simple divide by the total:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum(value)&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;Sum(Total value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 18:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate/m-p/2494232#M1226266</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-11-22T18:01:00Z</dc:date>
    </item>
  </channel>
</rss>

