<?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: How to obtain a partial total by dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382504#M1168496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact Mc is an expression, not a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values output by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;=sum(total &amp;lt;DESTINAZIONE&amp;gt; MVCDE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are not correct, i.e. for the ALTRO "DESTINAZIONE" we will have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;27 + 17.5 = 44.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and not 124 as I can see. There should be a sum of "Mc" expressions, not of MVCDE field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see that MVCDE in my db is an auto-incremental ID field that I use just to count the occurrences of what I'm evaluating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 14:36:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-30T14:36:00Z</dc:date>
    <item>
      <title>How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382496#M1168488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find image attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mc = Count(total &amp;lt;DESTINAZIONE, MEZZO&amp;gt; MVCDE) * MZPRT // MVCDE and MZPRT are two db fields&lt;/P&gt;&lt;P&gt;Tot Mc = sum(total &amp;lt;DESTINAZIONE&amp;gt; Mc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I getting 0 values as result? I don't understand where I'm making mistake, the red values shown in figure are the result I would expect...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you need to know more details about db structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Marco Pikiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382496#M1168488</guid>
      <dc:creator />
      <dc:date>2012-08-30T13:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382497#M1168489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe because &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;* MZPRT&lt;/SPAN&gt; is not part of any aggregation function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382497#M1168489</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-30T13:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382498#M1168490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each "MEZZO" ("DUMPER 1", "DUMPER 2", etc.) has its own MZPRT: which should be the right aggregation function to use in this case? Seeing from documentation "Only()" function, I suppose: is that right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382498#M1168490</guid>
      <dc:creator />
      <dc:date>2012-08-30T13:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382499#M1168491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;only is automatically used by QlikView when there is no other stated. try min or max, both should work as it is only one value for each mezzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382499#M1168491</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-30T13:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382500#M1168492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing "Mc" expression to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(total &amp;lt;DESTINAZIONE, MEZZO&amp;gt; MVCDE) * min(total &amp;lt;MEZZO&amp;gt; MZPRT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(total &amp;lt;DESTINAZIONE, MEZZO&amp;gt; MVCDE) * max(total &amp;lt;MEZZO&amp;gt; MZPRT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still outputs 0 values again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as of my newbieing to QV now another question arises: is it correct the "total &amp;lt;MEZZO&amp;gt; " notation I've put above in the min-max functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382500#M1168492</guid>
      <dc:creator />
      <dc:date>2012-08-30T14:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382501#M1168493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe a sample file would help solve this faster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382501#M1168493</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-30T14:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382502#M1168494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure ok, let's try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382502#M1168494</guid>
      <dc:creator />
      <dc:date>2012-08-30T14:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382503#M1168495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no such field as Mc :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in Tot Mc expression : =sum(total &amp;lt;DESTINAZIONE&amp;gt; MVCDE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382503#M1168495</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-30T14:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382504#M1168496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact Mc is an expression, not a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values output by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;=sum(total &amp;lt;DESTINAZIONE&amp;gt; MVCDE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are not correct, i.e. for the ALTRO "DESTINAZIONE" we will have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;27 + 17.5 = 44.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and not 124 as I can see. There should be a sum of "Mc" expressions, not of MVCDE field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see that MVCDE in my db is an auto-incremental ID field that I use just to count the occurrences of what I'm evaluating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382504#M1168496</guid>
      <dc:creator />
      <dc:date>2012-08-30T14:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382505#M1168497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what expression is Mc? The previous column?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382505#M1168497</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-30T14:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382506#M1168498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i.e. the column after "DESTINAZIONE" dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After "Mc" there is "Tot Mc" expression that is the sum of "Mc" values grouped by "DESTINAZIONE" dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 14:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382506#M1168498</guid>
      <dc:creator />
      <dc:date>2012-08-30T14:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382507#M1168499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;somehting like the attached?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382507#M1168499</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-30T15:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382508#M1168500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the attached, "Tot Mc" is not correct, but "Tot Mc new" almost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I say almost because I would expect the same values also for "DUMPER 2" MEZZO, and not a series of 0..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;... what a concatenation of functions! But where could I start to understand the logic behind this solution? i.e., which could be the best approach?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382508#M1168500</guid>
      <dc:creator />
      <dc:date>2012-08-30T15:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382509#M1168501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Sum(total&amp;lt;DESTINAZIONE&amp;gt; aggr(distinct Count(MVCDE)*MZPRT, DESTINAZIONE, MEZZO))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/61292"&gt;http://community.qlik.com/thread/61292&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 07:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382509#M1168501</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-09-10T07:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382510#M1168502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! This is the expected result!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 10:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382510#M1168502</guid>
      <dc:creator />
      <dc:date>2012-09-10T10:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain a partial total by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382511#M1168503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont thank me! Whiteline is to thank! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 11:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-obtain-a-partial-total-by-dimension/m-p/382511#M1168503</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-09-10T11:10:01Z</dc:date>
    </item>
  </channel>
</rss>

