<?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: TOTAL with set analysis - not working properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981896#M335173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's not a bug. It is expected behaviour, and in my mind the best solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that the "Total" qualifier makes the engine treat the aggregation like a constant in the hypercube. It does not make sense to create an entire cube (all combinations of all dimensions) and then fill it with the same number. Hence, an expression with "Total" is not used to determine which rows to show in the chart. Further, when you use the "Total" qualifier, you indeed use it like a constant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to explain this is probably by an example. In the picture below, I use the "Total" qualifier to calculate a percentage (see column header to the right) - a type of calculation which is extremely common.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Total.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107361_Total.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The chart only shows the rows of the selected two dates. &lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;To show more rows would be perceived as a bug&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same logic is of course used if you show just the expression with the total:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="total2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/107362_total2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Bottom line: An expression using the "Total" qualifier will not be used to determine which rows to show in a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should you want to force QlikView to show more rows, you can add a second expression or add a zero-valued term in the same expression:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="total3.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/107363_total3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Nov 2015 13:03:36 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2015-11-26T13:03:36Z</dc:date>
    <item>
      <title>TOTAL with set analysis - not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981889#M335166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was working on a &lt;A _jive_internal="true" href="https://community.qlik.com/thread/192961"&gt;post&lt;/A&gt; and re-validating the behavior of the expression creating a test application. Expression, &lt;STRONG&gt;Sum({1} Total Data)&lt;/STRONG&gt; should not get affected by any selection (I guess I am not greatly mistaken). But out of the blue, when I tested the selection made an effect. Check the screen shots. I am using QV 11.2 SR 12. Could you guys please check if you see the same behavior? Please mention your versions while stating the test result. However, if I remove &lt;STRONG&gt;Total &lt;/STRONG&gt;from the expression, it works as expected.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="107017" alt="666.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107017_666.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="107018" alt="777.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107018_777.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Attached the sample qvw. Could this be a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 12:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981889#M335166</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-11-25T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Total with set analysis - not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981890#M335167</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 think this is a bug but this is only related to the chart. Just add another expression sum({1} Data) and you see all.&lt;/P&gt;&lt;P&gt;You can enable in the chart also "show all values" and "supress null ..." and than you will get also all entries.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="107027" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107027_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;Konrad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 12:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981890#M335167</guid>
      <dc:creator>konrad_mattheis</dc:creator>
      <dc:date>2015-11-25T12:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Total with set analysis - not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981891#M335168</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 checked this also in sense, same behauvior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;Konrad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 12:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981891#M335168</guid>
      <dc:creator>konrad_mattheis</dc:creator>
      <dc:date>2015-11-25T12:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Total with set analysis - not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981892#M335169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can reproduce this on QV 11 SR11 x64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is a symptom of a bug or by design (and if it's by design, if you want to call it a defect).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume it's by the nature of the TOTAL qualifier that the expression is not evaluated per dimension line, and thus the limitation of the dimension values is given by the field selection, not by the set expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 13:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981892#M335169</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-25T13:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Total with set analysis - not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981893#M335170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is where a confirmation is required. Is it by-design or a bug? May be &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt; can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 04:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981893#M335170</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-11-26T04:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL with set analysis - not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981894#M335171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({1} Total Data)&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; should not get affected by any selection&lt;/SPAN&gt;" - it is not fully correct explanation. It means that from field "Data" is ised all values for calculating and set of values does not depends from selections. That is all. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you use expression "Sum({1} Total Data)" you obtain always only one value and chart shows it one. &lt;SPAN style="font-size: 13.3333px;"&gt;Selection in field "Data" not affects to result of expression "&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({1} Total Data)&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;", but affects to set for representation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;When you use expression "Sum(Total Data)" you obtain set of values, which depends from selections and chart chows it as several values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Visualisation depends from settings in chart. For instance, in your application you can show all values of dimension if set parameter dimension "show all values" in true&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 09:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981894#M335171</guid>
      <dc:creator>smirkinaa</dc:creator>
      <dc:date>2015-11-26T09:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL with set analysis - not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981895#M335172</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;Same for me also, as per QV help file even you select the value it should not reflect in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from Qlikview help file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;sum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; {1} &lt;SPAN class="Bold"&gt;Total&lt;/SPAN&gt; Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;returns total sales within the application, disregarding both selection and dimension. I.e. the same as sum(&lt;SPAN class="Bold"&gt;All&lt;/SPAN&gt; Sales).&amp;nbsp;&amp;nbsp; --- This is misleading&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using QV11.2 SR9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 09:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981895#M335172</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-11-26T09:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL with set analysis - not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981896#M335173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's not a bug. It is expected behaviour, and in my mind the best solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that the "Total" qualifier makes the engine treat the aggregation like a constant in the hypercube. It does not make sense to create an entire cube (all combinations of all dimensions) and then fill it with the same number. Hence, an expression with "Total" is not used to determine which rows to show in the chart. Further, when you use the "Total" qualifier, you indeed use it like a constant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to explain this is probably by an example. In the picture below, I use the "Total" qualifier to calculate a percentage (see column header to the right) - a type of calculation which is extremely common.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Total.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107361_Total.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The chart only shows the rows of the selected two dates. &lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;To show more rows would be perceived as a bug&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same logic is of course used if you show just the expression with the total:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="total2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/107362_total2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Bottom line: An expression using the "Total" qualifier will not be used to determine which rows to show in a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should you want to force QlikView to show more rows, you can add a second expression or add a zero-valued term in the same expression:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="total3.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/107363_total3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 13:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981896#M335173</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-11-26T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL with set analysis - not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981897#M335174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking the same thing but I had no idea about the zero expression, I'm bookmarking that one as an important tip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 16:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-with-set-analysis-not-working-properly/m-p/981897#M335174</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2015-11-26T16:52:31Z</dc:date>
    </item>
  </channel>
</rss>

