<?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&amp;lt;&amp;gt; clause  affecting set operators in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822472#M289964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OK, but could you say what should be under SOH DEN in the example, in numbers? It's hard to zero in on the correct result when you don't know what it is &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;SPAN class="emoticon-inline emoticon_wink" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And really, neither "Total" nor chart dimensions influence set analysis (including the p function), because it's not how it works. The list returned by p() is the same in every row, but some values from that list will go under one dimension value, some under the other (the Total clause can influence that part only). Just like with normal selections - Total clause won't suddenly change your selections, but can change how the selected data will be distributed among dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 09:57:24 GMT</pubDate>
    <dc:creator>kuba_michalik</dc:creator>
    <dc:date>2015-01-27T09:57:24Z</dc:date>
    <item>
      <title>TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822464#M289956</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;BR /&gt;This is my Scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a Pivot Table Graph with 4 dimensions DESC_PRODUCTO, DESC_SUBPRODUCTO,DESC_EMPRESA and DESC_MARCA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my Expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;M.ID_SITIO = p({$&amp;lt;FlagCY={1},M.FECHA={"&amp;gt;=$(#desde)&amp;lt;=$(#hasta)"},M.NIVEL4 ={'00'}, M.RESPUESTA = {'Si'}&amp;gt; }M.ID_SITIO),M.NIVEl4 ={'01'},FlagCY={1},M.FECHA={"&amp;gt;=$(#desde)&amp;lt;=$(#hasta)"}&amp;gt;} total&amp;lt;DESC_SUBPRODUCTO&amp;gt; num(M.RESPUESTA)),'-')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the Total&amp;lt;desc_subproducto&amp;gt; it should affect only the sum(M.RESPUESTA) and not also the p({$&amp;lt;FlagCY={1},M.FECHA={"&amp;gt;=$(#desde)&amp;lt;=$(#hasta)"},M.NIVEL4 ={'00'}, M.RESPUESTA = {'Si'}&amp;gt; }M.ID_SITIO). So i want that the list of M.IDSITIO is based on the dimension (DESC_MARCA) but the total ruin it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&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;Albert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 17:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822464#M289956</guid>
      <dc:creator />
      <dc:date>2015-01-20T17:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822465#M289957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 15:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822465#M289957</guid>
      <dc:creator />
      <dc:date>2015-01-26T15:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822466#M289958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached your data or qvw file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 15:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822466#M289958</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-01-26T15:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822467#M289959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Expression that im talking about is SOH DEN&lt;/P&gt;&lt;P&gt;&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 Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822467#M289959</guid>
      <dc:creator />
      <dc:date>2015-01-26T16:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822468#M289960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have a problem with the total&amp;lt;&amp;gt; affecting the set expression. You have a problem with the fact that set analysis is always evaluated first, and chart dimensions second. There is no way to have dimension values for a table cell influence anything within the {}. Set expression (and the resulting set as well) will always be the same for a single expression for the entire table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822468#M289960</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2015-01-26T16:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822469#M289961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't understand it at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concatenation of ID's is calculated row by row, in the other Expression. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 17:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822469#M289961</guid>
      <dc:creator />
      <dc:date>2015-01-26T17:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822470#M289962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's because dimensions influence the concatenation, otherwise they would be pretty useless &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the list of ID_SITIO that "p({$&amp;lt;[NIVEL 4] ={'00'}, RESPUESTA = {'Si'}&amp;gt; }ID_SITIO)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;" gives you is the same in every row. Dimensions don't touch it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, that's a bit theoretical, as I'm not sure this set analysis for ID_SITIO does anything in the example. If I remove it everything stays the same. So, to get more to it, what is wrong with the values in SOH DEN, and what would you expect? If it' supposed to be sum of everything in one group with the same NIVEL 2 (the same as what would you get if you had subgroup totals displayed), then please try TOTAL&amp;lt;[NIVEL 1],[NIVEL 2]&amp;gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 09:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822470#M289962</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2015-01-27T09:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822471#M289963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer Jakub, but thats the main problem, that the list of ID_SITIO given by the p function is NOT the same in every row, so its definetly doing it right on the chart. The problem is when is followed by the Total Clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive tried before agregating the previous dimension to the total, but still gaves the same result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 09:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822471#M289963</guid>
      <dc:creator />
      <dc:date>2015-01-27T09:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822472#M289964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OK, but could you say what should be under SOH DEN in the example, in numbers? It's hard to zero in on the correct result when you don't know what it is &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;SPAN class="emoticon-inline emoticon_wink" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And really, neither "Total" nor chart dimensions influence set analysis (including the p function), because it's not how it works. The list returned by p() is the same in every row, but some values from that list will go under one dimension value, some under the other (the Total clause can influence that part only). Just like with normal selections - Total clause won't suddenly change your selections, but can change how the selected data will be distributed among dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 09:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822472#M289964</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2015-01-27T09:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822473#M289965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOH DEN should&amp;nbsp; bring 3800 for NIVEL3 = 01, 1745 for NIVEL3 = 05, 170 for NIVEL3 = 09,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 10:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822473#M289965</guid>
      <dc:creator />
      <dc:date>2015-01-27T10:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: TOTAL&lt;&gt; clause  affecting set operators</title>
      <link>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822474#M289966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FOR EXAMPLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR NIVEL3 = 01&amp;nbsp; - THe SOH NUM is : THE SUM OF RESPUESTA WHEN NIVEL 04 = 01 and NIVEL3 = 01 where IDSITIO IN ( NIVEL 4 = 00 and RESPUESTA = 'SI'&amp;nbsp; and NIVEL3 = 01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR NIVEL3 = 01&amp;nbsp; - THe SOH DEN&amp;nbsp; is : THE SUM OF RESPUESTA WHEN NIVEL 04 = 01 where IDSITIO IN ( NIVEL 4 = 00 and RESPUESTA = 'SI'&amp;nbsp; and NIVEL3 = 01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference should be that in the DEN, the sum of the RESPUESTA when NIVEL 04 = 01 is not based on the NIVEL3, should be all the sum independing on NIVEL3, but the restriction of the IDSITIO List SHOULD be restricted by each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 10:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TOTAL-lt-gt-clause-affecting-set-operators/m-p/822474#M289966</guid>
      <dc:creator />
      <dc:date>2015-01-27T10:10:11Z</dc:date>
    </item>
  </channel>
</rss>

