<?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 Problem with total/Aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170796#M904749</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'm having some trouble with my calculation. See the exemple below : &lt;IMG __jive_id="130027" alt="stationnement.png" class="jive-image image-1" height="49" src="https://community.qlik.com/legacyfs/online/130027_stationnement.png" style="height: 49.2645px; width: 664px; float: left;" width="664" /&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's calculated this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[NbPlaces]/&lt;SPAN style="font-size: 13.3333px;"&gt;([NbRelevés]/[NbRue])&lt;/SPAN&gt;=[TotalPlaces]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;([NbRelevés]/[NbRue]) = [Coeff] by the way&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The problem is that the total shouldn't be like it is right there. For 2014, [TotalPlaces] should be :&lt;/P&gt;&lt;P&gt;951+2552+842= 4345 and not 127 247/(9065/283).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the way to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you very much in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antonin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ce message a été modifié par : Antonin Ramet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Problem with total/Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170796#M904749</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'm having some trouble with my calculation. See the exemple below : &lt;IMG __jive_id="130027" alt="stationnement.png" class="jive-image image-1" height="49" src="https://community.qlik.com/legacyfs/online/130027_stationnement.png" style="height: 49.2645px; width: 664px; float: left;" width="664" /&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's calculated this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[NbPlaces]/&lt;SPAN style="font-size: 13.3333px;"&gt;([NbRelevés]/[NbRue])&lt;/SPAN&gt;=[TotalPlaces]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;([NbRelevés]/[NbRue]) = [Coeff] by the way&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The problem is that the total shouldn't be like it is right there. For 2014, [TotalPlaces] should be :&lt;/P&gt;&lt;P&gt;951+2552+842= 4345 and not 127 247/(9065/283).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the way to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you very much in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antonin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ce message a été modifié par : Antonin Ramet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170796#M904749</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total/Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170797#M904750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 13:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170797#M904750</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-04T13:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total/Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170798#M904752</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;Aggregate your calculations by &lt;STRONG&gt;Zone&lt;/STRONG&gt; as below.&lt;/P&gt;&lt;P&gt;example for nb places / nb releve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(sum({&amp;lt;flag_place={'OK'}&amp;gt;}Nb_places)/(count(ID_Date)/count(distinct Impl_compl)) / count({&amp;lt;flag_montant={'OK'}&amp;gt;}DISTINCT ID_Date),Zone))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Encapsulate your calculations between this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;SUM( AGGR ( &lt;/STRONG&gt;yourcalculation &lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt; &lt;STRONG style="font-size: 12pt;"&gt;ZONE) )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 14:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170798#M904752</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-07-04T14:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total/Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170799#M904753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find an exemple attached to the first post! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 14:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170799#M904753</guid>
      <dc:creator />
      <dc:date>2016-07-04T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total/Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170800#M904754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this as your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If($(=GetCurrentField(Géographie)) = 'Rue',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum({&amp;lt;flag_place={'OK'}&amp;gt;}Nb_places)/(Count(ID_Date)/Count(DISTINCT Impl_compl)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; $(='[' &amp;amp; GetCurrentField([Géographie]) &amp;amp; ']'), Impl_compl, $(='[' &amp;amp; GetCurrentField([Temps]) &amp;amp; ']'))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum({&amp;lt;flag_place={'OK'}&amp;gt;}Nb_places)/(Count(ID_Date)/Count(DISTINCT Impl_compl)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; $(='[' &amp;amp; GetCurrentField([Géographie]) &amp;amp; ']'), $(='[' &amp;amp; GetCurrentField([Temps]) &amp;amp; ']'))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/130071_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 20:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170800#M904754</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-04T20:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total/Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170801#M904756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to expression TAB --&amp;gt; Total Mode --&amp;gt;Click on 3rd option and select &lt;STRONG&gt;Sum of Rows&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 04:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170801#M904756</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2016-07-05T04:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total/Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170802#M904757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works like a charm, thanks !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 07:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-total-Aggr/m-p/1170802#M904757</guid>
      <dc:creator />
      <dc:date>2016-07-05T07:52:58Z</dc:date>
    </item>
  </channel>
</rss>

