<?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: Keywords : TOTAL, ALL &amp;amp; DISTINCT in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/1588045#M443334</link>
    <description>&lt;P&gt;Hi Bharath,&lt;/P&gt;&lt;P&gt;Thanks for the elaborate answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(ALL Amount)&amp;nbsp;&lt;/STRONG&gt;on the other hand yield the result on entire data set regardless of current selections or dimensions. So it will give same value as net total, and for each row as well which will be different from&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;SUM({1} Amount).&amp;nbsp;&lt;/STRONG&gt; Won't&amp;nbsp;&lt;STRONG&gt;SUM({1} Amount)&amp;nbsp;&lt;/STRONG&gt;be equal to&amp;nbsp;&lt;STRONG&gt;SUM(TOTAL &amp;lt;Month&amp;gt;Amount)&amp;nbsp;&lt;/STRONG&gt;which in turn should be equal to&amp;nbsp;&lt;STRONG&gt;SUM(Amount)&amp;nbsp;?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gagan&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 10:40:29 GMT</pubDate>
    <dc:creator>gagan_bhasin</dc:creator>
    <dc:date>2019-06-04T10:40:29Z</dc:date>
    <item>
      <title>Keywords : TOTAL, ALL &amp; DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143514#M22742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently working on QV (amazing software, i have to admit it) but i still have several interrogations...&lt;BR /&gt;One of them is the definition between TOTAL, ALL &amp;amp; DISTINCT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know DISTINCT avoids the duplication of the values (i assume the List Boxes uses something similar to avoid displaying twice some values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, however, what's the difference between TOTAL &amp;amp; ALL ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your future explanations &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&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>Thu, 07 May 2009 03:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143514#M22742</guid>
      <dc:creator />
      <dc:date>2009-05-07T03:05:55Z</dc:date>
    </item>
    <item>
      <title>Keywords : TOTAL, ALL &amp; DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143515#M22743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As best I understand it, ALL means every value in your data set, whether or not it is excluded by your current selections. So if you have five years of data, and have selected a year, and have a chart showing sum(ALL amount) by month, each month will have the same total, which will be the sum of all amounts for the past five years. Note that it is now preferred to use sum({1} amount), which has the same effect.&lt;/P&gt;&lt;P&gt;Total, on the other hand, does take your current selections into account. But it ignores what row you're on in a table. So back to our example, sum(TOTAL amount) would again have the same total for each month, but it would be the sum of all amounts for the selected year.&lt;/P&gt;&lt;P&gt;Here's how QlikView describes it:&lt;/P&gt;&lt;P&gt;"If the word &lt;STRONG&gt;total&lt;/STRONG&gt; occurs before an &lt;EM&gt;expression&lt;/EM&gt;, the calculation will be made over all possible values given the current selections, but disregarding the chart dimensions.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;total&lt;/STRONG&gt; qualifier may be followed by a list of one or more field names within angle brackets. These field names should be a subset of the chart dimensions. In this case the calculation will be made disregarding all chart dimensions except those listed, i.e. one value will be returned for each combination of field values in the listed dimension fields. Also fields which are not currently a dimension in a chart may be included in the list. This may be useful in the case of group dimensions, where the dimension fields are not fixed. Listing all of the dimensions in the group causes the function to work when the cycle or drill-down level changes.&lt;/P&gt;&lt;P class="hcp7"&gt;In previous QlikView versions, the &lt;STRONG&gt;all&lt;/STRONG&gt; qualifier may occur before an &lt;EM&gt;expression&lt;/EM&gt;. This is equivalent to using &lt;STRONG&gt;{1} total&lt;/STRONG&gt;. In such a case the calculation will be made over all the values of the field in the document, disregarding the chart dimensions and current selections. (The same value is always returned regardless of the logical state in the document.) If the &lt;STRONG&gt;all&lt;/STRONG&gt; qualifier is used, a set expression cannot be used, since the all qualifier defines a set by itself. For legacy reasons, the &lt;STRONG&gt;all&lt;/STRONG&gt; qualifier will still work in this QlikView version, but may be removed in coming versions."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 03:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143515#M22743</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-07T03:18:59Z</dc:date>
    </item>
    <item>
      <title>Keywords : TOTAL, ALL &amp; DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143516#M22744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to what John has explained here are few examples of ALL and TOTAL keywords&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(All Sales) returns aggregated sales irrespective of any dimension and any selection&lt;/P&gt;&lt;P&gt;sum(Sales)/sum(total Sales) returns the share within the selection&lt;/P&gt;&lt;P&gt;sum(Sales)/sum(total &amp;lt;Month&amp;gt; Sales) returns the share within the selection for each&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;sum(Sales)/sum(total &amp;lt;Month,Grp&amp;gt; Sales) returns the share within the selection for&lt;/P&gt;&lt;P&gt;each Month and Grp&lt;/P&gt;&lt;P&gt;sum(Sales)/sum(total &amp;lt;Qtr,Month,Week&amp;gt; Sales) possible syntax for use with a time&lt;/P&gt;&lt;P&gt;drill-down group&lt;/P&gt;&lt;P&gt;sum({1} total Sales) returns sales within the entire document&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2012 09:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143516#M22744</guid>
      <dc:creator />
      <dc:date>2012-01-02T09:16:10Z</dc:date>
    </item>
    <item>
      <title>Keywords : TOTAL, ALL &amp; DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143517#M22745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Total is used to calculate&amp;nbsp; a total against&amp;nbsp; some field or expression written inside angle brackets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Total&amp;lt;fieldname&amp;gt; value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Totaal is depenent on field name i.e it will show&amp;nbsp; you total based on Fieldname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;sum( All Value) it is not depent on any&amp;nbsp; field or expression.&lt;/P&gt;&lt;P&gt;it will also show you total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this hell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2012 09:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143517#M22745</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-01-02T09:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Keywords : TOTAL, ALL &amp; DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143518#M22746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;As we know, when aggregation function is used, certain record values are aggregated and a single result is produced. How qlikview identifies that relevant CERTAIN records?&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;When working with charts, it is based on 2 restrictions:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;1. Dimensional value&lt;/LI&gt;&lt;LI&gt;2. Selections&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;These 2 defines the scope of aggregation.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Sometimes, we need to come across these restrictions and use an aggregate function.In chart, it is achieved by using&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;1. &lt;STRONG&gt;TOTAL qualifier&lt;/STRONG&gt; – disregards dimensional grouping&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-top: 5.0pt; padding-left: 45px; margin-bottom: .0001pt;"&gt;Aggregation is performed on all possible values&lt;/P&gt;&lt;P style="margin-top: 5.0pt; padding-left: 45px; margin-bottom: .0001pt;"&gt;&lt;IMG alt="Pic 1.jpg" class="jive-image image-1" src="/legacyfs/online/192574_Pic 1.jpg" style="height: 212px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;If still we want grouping on particular dimension, we can use as&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;IMG alt="Pic2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/192584_Pic2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;2. &lt;STRONG&gt;Set analysis&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - identifier{1} is used which disregards selections&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-top: 5.0pt; padding-left: 45px; margin-bottom: .0001pt;"&gt;Aggregation is performed on all possible values but split by dimension&lt;/P&gt;&lt;P style="margin-top: 5.0pt; padding-left: 45px; margin-bottom: .0001pt;"&gt;&lt;IMG alt="Pic 3.jpg" class="jive-image image-3" src="/legacyfs/online/192585_Pic 3.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;3. &lt;STRONG&gt;ALL qualifier&lt;/STRONG&gt; – Both works of TOTAL and Set analysis is done&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-top: 5.0pt; padding-left: 22.5px; margin-bottom: .0001pt;"&gt;Both are same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.5pt; font-family: 'Courier New';"&gt;=sum (All Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.5pt; font-family: 'Courier New';"&gt;=sum ({1} Total Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.5pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.5pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 09:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143518#M22746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T09:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Keywords : TOTAL, ALL &amp; DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143519#M22747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for this great explanation. So clear and logical. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 12:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143519#M22747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T12:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Keywords : TOTAL, ALL &amp; DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143520#M22748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is excellent. For some reason, I was battling with the Total &amp;lt;&amp;gt; function and your explanation is golden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143520#M22748</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2018-11-08T15:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Keywords : TOTAL, ALL &amp; DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143521#M22749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is excellent. For some reason, I was battling with the Total &amp;lt;&amp;gt; function and your explanation is golden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/143521#M22749</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2018-11-08T15:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Keywords : TOTAL, ALL &amp; DISTINCT</title>
      <link>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/1588045#M443334</link>
      <description>&lt;P&gt;Hi Bharath,&lt;/P&gt;&lt;P&gt;Thanks for the elaborate answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(ALL Amount)&amp;nbsp;&lt;/STRONG&gt;on the other hand yield the result on entire data set regardless of current selections or dimensions. So it will give same value as net total, and for each row as well which will be different from&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;SUM({1} Amount).&amp;nbsp;&lt;/STRONG&gt; Won't&amp;nbsp;&lt;STRONG&gt;SUM({1} Amount)&amp;nbsp;&lt;/STRONG&gt;be equal to&amp;nbsp;&lt;STRONG&gt;SUM(TOTAL &amp;lt;Month&amp;gt;Amount)&amp;nbsp;&lt;/STRONG&gt;which in turn should be equal to&amp;nbsp;&lt;STRONG&gt;SUM(Amount)&amp;nbsp;?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gagan&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 10:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Keywords-TOTAL-ALL-DISTINCT/m-p/1588045#M443334</guid>
      <dc:creator>gagan_bhasin</dc:creator>
      <dc:date>2019-06-04T10:40:29Z</dc:date>
    </item>
  </channel>
</rss>

