<?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: Aggr function is not working correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017685#M926149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;sum(aggr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({&amp;lt;&lt;/SPAN&gt;Resultaatgroep1&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;[Geinv]&lt;SPAN style="color: #000000;"&gt;},&lt;/SPAN&gt;PeriodType&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;[Current]&lt;SPAN style="color: #000000;"&gt;}&amp;gt;} &lt;/SPAN&gt;BedragSaldi&lt;SPAN style="color: #000000;"&gt;),Vestiging_Naam,&lt;/SPAN&gt;AsOfPeriod&lt;SPAN style="color: #000000;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2016 14:56:08 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-03-30T14:56:08Z</dc:date>
    <item>
      <title>Aggr function is not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017684#M926148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QV experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the pivot table below I have a problem with the aggr function. In the 7th row (Tot Geinv vermogen saldo) I would like to show the total across all Vestiging_Naam for each AsOfPeriod using the following expression: &lt;/P&gt;&lt;P style="font-size: 14px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({&amp;lt;&lt;/SPAN&gt;Resultaatgroep1&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;[Geinv]&lt;SPAN style="color: #000000;"&gt;},&lt;/SPAN&gt;PeriodType&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;[Current]&lt;SPAN style="color: #000000;"&gt;}&amp;gt;} &lt;/SPAN&gt;BedragSaldi&lt;SPAN style="color: #000000;"&gt;),&lt;/SPAN&gt;AsOfPeriod&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However this expression is only shown correctly on the first line and is shown incorrectly (in fact not all) in the subsequent lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any thoughts what I am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rudi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV Comm Question.png" class="jive-image image-1" src="/legacyfs/online/119894_QV Comm Question.png" style="height: 286px; width: 620px;" /&gt;&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/Aggr-function-is-not-working-correctly/m-p/1017684#M926148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function is not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017685#M926149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;sum(aggr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({&amp;lt;&lt;/SPAN&gt;Resultaatgroep1&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;[Geinv]&lt;SPAN style="color: #000000;"&gt;},&lt;/SPAN&gt;PeriodType&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;[Current]&lt;SPAN style="color: #000000;"&gt;}&amp;gt;} &lt;/SPAN&gt;BedragSaldi&lt;SPAN style="color: #000000;"&gt;),Vestiging_Naam,&lt;/SPAN&gt;AsOfPeriod&lt;SPAN style="color: #000000;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017685#M926149</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-30T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function is not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017686#M926150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like Kush pointed out, you need to add all your dimensions within the Aggr function. What all dimensions do you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017686#M926150</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-30T14:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function is not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017687#M926151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kush, Sunny,&lt;/P&gt;&lt;P&gt;First of all thanks for your quick responses. &lt;/P&gt;&lt;P&gt;I have two dimensions: AsOfPeriod (the time dimension) and Vestiging_Naam (in English: the outlet). I need in each line the total of all outlets (Vestiging_Naam) per period (as reference number). The suggested expression of Kush is giving me - as you can see below - the total per outlet but not the total of all outlets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV Comm Question 2.png" class="jive-image image-1" src="/legacyfs/online/119914_QV Comm Question 2.png" style="height: 346px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Any thoughts here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thx,&lt;/P&gt;&lt;P&gt;Rudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017687#M926151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-30T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function is not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017688#M926152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Can you try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;AsOfPeriod&amp;gt;&lt;/SPAN&gt; Aggr&lt;/STRONG&gt;&lt;STRONG&gt;(Sum({&amp;lt;Resultaatgroep1={[Geinv]},PeriodType={[Current]}&amp;gt;}BedragSaldi),Vestiging_Naam,AsOfPeriod&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;STRONG style=": ; color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017688#M926152</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-30T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function is not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017689#M926153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works!!!!&lt;/P&gt;&lt;P&gt;I now see what I've done wrong! &lt;/P&gt;&lt;P&gt;Many thx for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017689#M926153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-30T15:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function is not working correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017690#M926154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem. I am glad me and Kush were able to help you out &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-is-not-working-correctly/m-p/1017690#M926154</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-30T15:32:52Z</dc:date>
    </item>
  </channel>
</rss>

