<?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: Subtotal com Aggr() in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952813#M32475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuri, boa tarde.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obrigado pela atenção.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validando a dimensão e numero da coluna:&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(Dimensionality() = 0 AND ColumnNo() &amp;lt;= 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Quando esta condição é verdadeira, o cálculo é aplicado sem o Aggr(), caso contrário com Aggr().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Atenciosamente,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Renato Adolfs&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2015 18:14:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-28T18:14:22Z</dc:date>
    <item>
      <title>Subtotal com Aggr()</title>
      <link>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952811#M32473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boa tarde.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Estou desenvolvendo uma DRE através de uma Pivot Table, indicando o percentual que cada despesa representa pelo faturamento de cada loja.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Utilizei o Aggr() pra somar o faturamento somente daquela loja em questão, mas o subtotal fica zerado, desta forma:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DRE.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100248_DRE.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;A expressão utilizada é:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;GRAU_3 = {'DESPESAS OPERACIONAIS'},GRAU_4=,GRAU_5&amp;gt;} VLRTOTAL ) / &lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr(NODISTINCT sum({&amp;lt;GRAU_5 = {'MERCADORIAS VENDIDAS'}&amp;gt;}VLRTOTAL),EMPRESA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Na coluna Rede, deveria trazer o indice da rede toda.&lt;/P&gt;&lt;P&gt;Existe a possibilidade de customizar o meu subtotal? Pra apresentar os valores corretos?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muito obrigado,&lt;/P&gt;&lt;P&gt;Renato Adolfs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 17:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952811#M32473</guid>
      <dc:creator />
      <dc:date>2015-09-28T17:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal com Aggr()</title>
      <link>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952812#M32474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Renato, disponibilize uma app de exemplo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 17:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952812#M32474</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2015-09-28T17:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal com Aggr()</title>
      <link>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952813#M32475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuri, boa tarde.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obrigado pela atenção.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validando a dimensão e numero da coluna:&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(Dimensionality() = 0 AND ColumnNo() &amp;lt;= 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Quando esta condição é verdadeira, o cálculo é aplicado sem o Aggr(), caso contrário com Aggr().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Atenciosamente,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Renato Adolfs&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 18:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952813#M32475</guid>
      <dc:creator />
      <dc:date>2015-09-28T18:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal com Aggr()</title>
      <link>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952814#M32476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Para facilitar envie um modelo de seus dados&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952814#M32476</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2015-09-29T15:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal com Aggr()</title>
      <link>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952815#M32477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Já conseguiu solucionar? Se sim, marque uma das respostas como "Correta" e nos ajude a manter os foruns organizados.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 23:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Subtotal-com-Aggr/m-p/952815#M32477</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-07-14T23:13:51Z</dc:date>
    </item>
  </channel>
</rss>

