<?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: Compare TOTAL and ALL function in sum expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849909#M1258241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Ruben, it works!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 11:23:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-17T11:23:54Z</dc:date>
    <item>
      <title>Compare TOTAL and ALL function in sum expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849905#M1258226</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;i have a file.qvw with two columns, TMP_ALL e TMP_TOTAL. If i make no selections it's all ok (value of the two columns are the same), if i filter by Data, Regione, ecc... the values of the columns are different (because the expression defined into TMP_TOTAL depends from the selection). Is there a way to have the same results on the two columns &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;regardless of the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;filters applied&lt;/SPAN&gt;&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;See the &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;attachment.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Thank you &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849905#M1258226</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compare TOTAL and ALL function in sum expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849906#M1258229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({1}TOTAL&amp;lt;Data&amp;gt; Popolazione)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 14:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849906#M1258229</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-16T14:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare TOTAL and ALL function in sum expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849907#M1258233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;!Sorry, the example i posted wasn't good. I created a new project where i have 14 cars, all &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;registered on 01/01/2010 and sold from 01/02/2010 to 01/03/2011 (one for month). The 14 cars are &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;distributed on 2 Province: 8 for Milano and 6 for Brescia. If I make no selections i have 6/14=42.86% for Brescia and 8/14=57.14% for Milano; if I select cars sold from 01/07/2010 to 01/03/2011 (9 cars, 5 for Brescia and 4 for Milano) I obtain the following % of distribution:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Brescia: 5/9=55.56%&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Milano: 4/9=44.44%&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;If I add another Selection (Brescia) the % of distribution is 100% (the value is correct because depends by the second filter but I'd like mantain 55.56%, namely the % respect the 9 cars obtained filtering only for date of sale). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Is there a way to make this (block the denominator to the value calculated &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;independently from the second filter&lt;/SPAN&gt;&lt;/SPAN&gt;)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;The solution {1}TOTAL is not good because the distibution is calculated over all cars(14).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 10:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849907#M1258233</guid>
      <dc:creator />
      <dc:date>2015-04-17T10:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare TOTAL and ALL function in sum expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849908#M1258237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi giuseppe, if you want to ignero selection in Provincia field you'll need to especify the fields you want to ignore:&lt;/P&gt;&lt;P&gt;count(Provincia)/count(TOTAL {&amp;lt;Provincia&amp;gt;} Provincia) &amp;lt;-- This will ignore selections in Provincia for the denominator but applies all other selections&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 10:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849908#M1258237</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-04-17T10:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compare TOTAL and ALL function in sum expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849909#M1258241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Ruben, it works!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 11:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-TOTAL-and-ALL-function-in-sum-expressions/m-p/849909#M1258241</guid>
      <dc:creator />
      <dc:date>2015-04-17T11:23:54Z</dc:date>
    </item>
  </channel>
</rss>

