<?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: Contagem de clientes com compra in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Contagem-de-clientes-com-compra/m-p/1037057#M35752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alessandro, bom dia!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desculpe a demora na sequência. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Com a expressão que passou funcionou para a grande maioria dos registros. Porém para alguns casos específicos não. Na imagem abaixo eu coloquei a Venda (VB) e a Contagem (POS) abrindo os CNPJs. Teoricamente, onde a VB é &amp;lt;=0 a POS deveria ser 0 e &amp;gt;0 deveria ser 1, mas nos casos em vermelho estão contando como 1.&lt;/P&gt;&lt;P&gt;Sabe o que poderia estar gerando este problema?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Positivação.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123766_Positivação.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Wellington&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2016 16:43:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-06T16:43:40Z</dc:date>
    <item>
      <title>Contagem de clientes com compra</title>
      <link>https://community.qlik.com/t5/Brasil/Contagem-de-clientes-com-compra/m-p/1037055#M35750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prezados,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Estou com dificuldade de conseguir a contagem de clientes que tiveram compra &amp;gt; que zero em um período. Tenho os seguintes campos:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB = Venda&lt;/P&gt;&lt;P&gt;CPF/CNPJ = CNPJ do cliente&lt;/P&gt;&lt;P&gt;CODPROD = Código do produto&lt;/P&gt;&lt;P&gt;MÊS_ANO = Mês e ano como período&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiz a expressão &lt;STRONG&gt;Count({&amp;lt;VB={'&amp;gt;0'}&amp;gt;}[CPF/CNPJ])&lt;/STRONG&gt; , mas em alguns casos ele está contando 2 vezes o mesmo CNPJ ou quando a venda é zero, ele está contando 1 vez. Meu objetivo é ter uma tabela como o modelo abaixo:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 293px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;CODPROD&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;JAN&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;FEV&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;MAR&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;ABR&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;10001&lt;/TH&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;5.879&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;6.587&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;8.569&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;6.354&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;10002&lt;/TH&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;10.254 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;25.458 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;23.024 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;15.879 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;10003&lt;/TH&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1.025 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;953 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;6.587 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;3.052 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;10004&lt;/TH&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;870 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;563 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;598 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; color: #575757; text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;980 &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O valor das células mostra a quantidade de CNPJs que têm valor de compra &amp;gt; que zero. Podem me dar uma dica de onde estou errando?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wellington&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 12:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Contagem-de-clientes-com-compra/m-p/1037055#M35750</guid>
      <dc:creator />
      <dc:date>2016-04-01T12:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Contagem de clientes com compra</title>
      <link>https://community.qlik.com/t5/Brasil/Contagem-de-clientes-com-compra/m-p/1037056#M35751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wellington,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;quem sabe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Count( distinct&amp;nbsp; if(VB&amp;gt;0,[CPF/CNPJ]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 22:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Contagem-de-clientes-com-compra/m-p/1037056#M35751</guid>
      <dc:creator>afurtado</dc:creator>
      <dc:date>2016-04-02T22:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Contagem de clientes com compra</title>
      <link>https://community.qlik.com/t5/Brasil/Contagem-de-clientes-com-compra/m-p/1037057#M35752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alessandro, bom dia!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desculpe a demora na sequência. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Com a expressão que passou funcionou para a grande maioria dos registros. Porém para alguns casos específicos não. Na imagem abaixo eu coloquei a Venda (VB) e a Contagem (POS) abrindo os CNPJs. Teoricamente, onde a VB é &amp;lt;=0 a POS deveria ser 0 e &amp;gt;0 deveria ser 1, mas nos casos em vermelho estão contando como 1.&lt;/P&gt;&lt;P&gt;Sabe o que poderia estar gerando este problema?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Positivação.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123766_Positivação.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Wellington&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 16:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Contagem-de-clientes-com-compra/m-p/1037057#M35752</guid>
      <dc:creator />
      <dc:date>2016-05-06T16:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Contagem de clientes com compra</title>
      <link>https://community.qlik.com/t5/Brasil/Contagem-de-clientes-com-compra/m-p/1037058#M35753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Já achou uma solução? Se sim, marque por gentileza uma das respostas como "Correta"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;A _jive_internal="true" data-containerid="1021" data-containertype="37" data-objectid="4787" data-objecttype="38" href="https://community.qlik.com/groups/qlikview-brasil/blog/2016/05/10/como-obter-ajuda" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #266fc8;"&gt;Como obter ajuda? Leia antes de postar&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 12:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Contagem-de-clientes-com-compra/m-p/1037058#M35753</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-08-05T12:31:20Z</dc:date>
    </item>
  </channel>
</rss>

