<?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 why the final total doesn't work? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167539#M39069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, if i put in the aggregation all the fields that are in the row, it doesn't work. My aggregation is already working, only the final totals that are wrong, and mabye cause i'm putting if in the beggining like RGDS said.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 May 2010 12:47:41 GMT</pubDate>
    <dc:creator>rcandeo</dc:creator>
    <dc:date>2010-05-27T12:47:41Z</dc:date>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167535#M39065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this application attached that has a test with aggregation. This test is to show only values wich amount be bigger than a variable (that is filled with 10.000).&lt;/P&gt;&lt;P&gt;In the line detais it works, but in the final total, the amount didn't considered the aggregation test.&lt;/P&gt;&lt;P&gt;Someone can help me how can I have this final total correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 21:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167535#M39065</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2010-05-26T21:48:31Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167536#M39066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, because you have if()'s by every row (changing between the sum() and 0) in the final total, the pivot table shows the Total Expression and not the sum of rows, this behavior cannot be changed in it's properties.&lt;/P&gt;&lt;P&gt;i'll take a look ASAP to help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 22:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167536#M39066</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-05-26T22:14:03Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167537#M39067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which fields are you trying to aggregate? I can see you are taking the sum of Valor_Bruto, but what function are the other fields serving? I think the problem is with the way the aggr is being used. If you take out all fields but Valor_Bruto, the calculation continues to function exactly like it is now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 22:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167537#M39067</guid>
      <dc:creator />
      <dc:date>2010-05-26T22:25:58Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167538#M39068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the "sum of rows" in a pivot table, you have to do it by sum(aggr(expression,dimensions)). So this would be your Valor Bruto expression:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;STRONG&gt;sum(aggr(&lt;/STRONG&gt;if(sum(aggr(Valor_Bruto,Filial,Documento,Codigo_Fornecedor&lt;BR /&gt; ,Nota,Valor_Pagamento,Chave_Pagamento))&amp;gt;Valor_Minimo&lt;BR /&gt; ,sum(aggr(Valor_Bruto,Filial,Documento,Codigo_Fornecedor&lt;BR /&gt; ,Nota,Valor_Pagamento,Chave_Pagamento)),0)&lt;BR /&gt; &lt;STRONG&gt;,UM_NF,Fornecedor,Codigo_Fornecedor,CNPJ_CPF,BancoAgencia&lt;BR /&gt;&lt;/STRONG&gt; &lt;STRONG&gt;,CodigoBancoAgencia,Item_Descricao1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Seems to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 01:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167538#M39068</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-27T01:11:07Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167539#M39069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, if i put in the aggregation all the fields that are in the row, it doesn't work. My aggregation is already working, only the final totals that are wrong, and mabye cause i'm putting if in the beggining like RGDS said.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 12:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167539#M39069</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2010-05-27T12:47:41Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167540#M39070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aaron, If I does't make an aggregation, it shows me no value cause it's a consolidated table and I'm making a comparison of the sum(Valor_Bruto) to show only if it's bigger than the variable Valor_Minimo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 12:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167540#M39070</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2010-05-27T12:53:31Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167541#M39071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´ve tried to adjust but it is giving me an error. See if you help me please?&lt;/P&gt;&lt;P&gt;sum(if(&lt;B&gt;sum(aggr(Valor_Bruto,Filial,Documento,Codigo_Fornecedor,Nota,Valor_Pagamento,Chave_Pagamento))&lt;/B&gt;&amp;gt;Valor_Minimo,aggr(Valor_Bruto,Filial,Documento,Codigo_Fornecedor,Nota,Valor_Pagamento,Chave_Pagamento),0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error seems to be in the bold part of the expression...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 13:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167541#M39071</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2010-05-27T13:17:52Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167542#M39072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you are trying to do with "aggr(Valor_Bruto, Filial, Documento...)", but I think that is part of your problem. If your comparison is to be made against only the sum of Valor_Bruto, you would need something a bit more like this:&lt;/P&gt;&lt;P&gt;Sum(aggr(If(Sum(Valor_Bruto)&amp;gt;ValorMinimo, Sum(ValorBruto)), UM_NF,Fornecedor,Codigo_Fornecedor,CNPJ_CPF,BancoAgencia ,CodigoBancoAgencia,Item_Descricao1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 15:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167542#M39072</guid>
      <dc:creator />
      <dc:date>2010-05-27T15:24:03Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167543#M39073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aaron, it didn't work cause if I compare only the amount of Valor_Bruto without aggregation, the sum will result in 0 value.&lt;/P&gt;&lt;P&gt;That's why I'm using the aggregation.&lt;/P&gt;&lt;P&gt;Try to put a new expression beside my expression of Valor Bruto and you will see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 15:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167543#M39073</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2010-05-27T15:55:10Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167544#M39074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[quote user="Robson Candêo"]John, if i put in the aggregation all the fields that are in the row, it doesn't work. My aggregation is already working, only the final totals that are wrong, and mabye cause i'm putting if in the beggining like RGDS said.&lt;/P&gt;&lt;P&gt;It doesn't work? Did you TRY cutting and pasting what I gave you? Because &lt;STRONG&gt;I&lt;/STRONG&gt; tried it. It didn't change ANY of your individual row numbers, only the final total, which became the sum of your rows. For the final total, it gave me this number:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;2.793.139,05&lt;/P&gt;&lt;P&gt;That is the exact same number that Excel tells me is the sum of the values in the column. That's what I thought you wanted. If that is NOT the number you want, what number DO you want? And why?&lt;/P&gt;&lt;P&gt;And yes, your expression doesn't work on the total line because of the way the if(sum()&amp;gt;...,sum()) behaves in a pivot table, or by default in a straight table. The sums and the if() apply to everything, not to one row at a time. The sum of everything is higher than your minimum. So it shows you the total of everything. You needed, if I understand correctly, the sum of rows. What I posted is a way to get a sum of rows in a pivot table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 18:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167544#M39074</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-27T18:01:17Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167545#M39075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry John, you were right. It worked and I simplified the expression a little bit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;sum(aggr(if(sum(aggr(Valor_Bruto,Filial,Codigo_Fornecedor,Nota))&amp;gt;Valor_Minimo&lt;/P&gt;&lt;P style="font-weight: bold"&gt;,sum(aggr(Valor_Bruto,Filial,Codigo_Fornecedor,Nota)),0)&lt;/P&gt;&lt;P style="font-weight: bold"&gt;,UM_NF,Fornecedor,Codigo_Fornecedor,CNPJ_CPF,BancoAgencia&lt;/P&gt;&lt;P style="font-weight: bold"&gt;,CodigoBancoAgencia,ContaBancaria,Item_Descricao1))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can you help me doing the same thing in the chart "Detalhes Bancos - Relatório de Madeiras"?&lt;/P&gt;&lt;P&gt;I' ve tried this expression but it didn't worked. The idea is to show an amount only when the aggregation is bigger than the variable Valor_Minimo, but when printing a value, it must be detailed as using sum(Valor_Bruto)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(sum(aggr(Valor_Bruto,Filial,Codigo_Fornecedor,Nota))&amp;gt;Valor_Minimo&lt;/P&gt;&lt;P&gt;,sum(aggr(Valor_Bruto,Filial,Codigo_Fornecedor,Nota)),0)&lt;/P&gt;&lt;P&gt;,UM_NF,Fornecedor,Codigo_Fornecedor,CNPJ_CPF,BancoAgencia&lt;/P&gt;&lt;P&gt;,CodigoBancoAgencia,ContaBancaria,Item_Descricao1))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 20:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167545#M39075</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2010-05-27T20:16:34Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167546#M39076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm very unclear what you want, but maybe you're asking for this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(dimensionality()&amp;lt;3&lt;BR /&gt; ,sum(Valor_Bruto)&lt;BR /&gt; ,your original "Valor Bruto" expression here)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 May 2010 00:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167546#M39076</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-29T00:36:57Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167547#M39077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John for continue trying to help me.&lt;/P&gt;&lt;P&gt;Unfortunately it's not that.&lt;/P&gt;&lt;P&gt;For the line totals it works, but I need to show in the detail lines the sum of individual Valor_Bruto, but only when the aggregation of the lines that will result in the next line total is bigger than the variable Valor_Minimo.&lt;/P&gt;&lt;P&gt;I've made me clear now please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 May 2010 04:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167547#M39077</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2010-05-29T04:04:33Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167548#M39078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"If you want the "sum of rows" in a pivot table, you have to do it by sum(aggr(expression,dimensions))."&lt;/P&gt;&lt;P&gt;Thanks for that John .. BTW new picture? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Feb 2011 21:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167548#M39078</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2011-02-13T21:12:17Z</dc:date>
    </item>
    <item>
      <title>why the final total doesn't work?</title>
      <link>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167549#M39079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Amien wrote:BTW new picture? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Yep. The previous picture was about a year and a half old, so I figured it was time for a new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 19:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/why-the-final-total-doesn-t-work/m-p/167549#M39079</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-14T19:21:57Z</dc:date>
    </item>
  </channel>
</rss>

