<?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: Perfil do cliente in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457379#M53654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obrigado pela resposta Clever, pensei que ele avaliava se o cust group =06 e caso não fosse ele passava para o próximo if, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Existe alguma forma do if levar em consideração o cust_group ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jan 2018 13:39:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-02T13:39:22Z</dc:date>
    <item>
      <title>Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457371#M53646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Caros, bom dia. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vejam por gentileza, se podem me ajudar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ao fazer uma condicional para definir o perfil (p,m,g,gg) de um cliente não estou chegando ao resultado esperado. Para fazer esse "if" tenho algumas condicionais, como volume dos últimos 3 meses, a segmentação do cliente e Uf. Ps.:Estou fazendo na dimensão pois no futuro vou precisar filtrar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bem, como pode ser visto na imagem abaixo, ao filtrar um cliente com característica "cust_group={06}" ele entra no primeiro if e retorna resultado "P1"&amp;nbsp; sendo que o correto seria retornar o resultado do segundo if "P". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="06.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188554_06.PNG" style="height: 72px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abaixo segue meu código, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; if(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;VTYPE={010},&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; cust_group={'10'},&lt;/STRONG&gt;&lt;/SPAN&gt; MKS_REGION_Descr={'Minas Gerais'}, month= {$(VLastMonth),$(VSecondtoLastMonth),$(VActualMonth)}&amp;gt;}_volume)&amp;gt;-100 and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;VTYPE={010}, cust_group={'10'}, MKS_REGION_Descr={'Minas Gerais'}, month= {$(VLastMonth),$(VSecondtoLastMonth),$(VActualMonth)}&amp;gt;}_volume)&amp;lt;51, 'P1',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; if(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;VTYPE={010},&lt;SPAN style="color: #ff0000;"&gt; &lt;STRONG&gt;cust_group={'06'}&lt;/STRONG&gt;&lt;/SPAN&gt;, MKS_REGION_Descr={'Minas Gerais'}, month= {$(VLastMonth),$(VSecondtoLastMonth),$(VActualMonth)}&amp;gt;}_volume)&amp;gt;-100 and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;VTYPE={010}, cust_group={'06'}, MKS_REGION_Descr={'Minas Gerais'}, month= {$(VLastMonth),$(VSecondtoLastMonth),$(VActualMonth)}&amp;gt;}_volume)&amp;lt;1500, 'P',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,ship_to_descr )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Obrigado. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 12:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457371#M53646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T12:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457372#M53647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pode ser compartilhado o aplicativo de exemplo?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 12:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457372#M53647</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-02T12:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457373#M53648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Olá Anil, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infelizmente o arquivo está com mais de 100mb além de ter mtas informações que não posso compartilhar.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 12:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457373#M53648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T12:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457374#M53649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Você pode colocar primeiro para o último e último primeiro e verificar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457374#M53649</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-02T13:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457375#M53650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Desculpe Anil, não entendi ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457375#M53650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T13:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457376#M53651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eu disse isso?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;= Aggr (&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum ({VTYPE = {010}, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;cust_group = {'06'}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; , MKS_REGION_Descr = {'Minas Gerais'}}, month = {$ (VLastMonth), $ (VSecondtoLastMonth), $ (VActualMonth) -100 and&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum ({VTYPE = {010}, cust_group = {'06'}, MKS_REGION_Descr = {'Minas Gerais'}}, month = {$ (VLastMonth), $ (VSecondtoLastMonth), $ (VActualMonth) 1500, 'P',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum ({VTYPE = {010}, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style=": ; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;cust_group = {'10'},&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt; MKS_REGION_Descr = {'Minas Gerais'}}, month = {$ (VLastMonth), $ (VSecondtoLastMonth), $ (VActualMonth) -100 and&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum ({VTYPE = {010}, cust_group = {'10'}, MKS_REGION_Descr = {'Minas Gerais'}}, month = {$ (VLastMonth), $ (VSecondtoLastMonth), $ (VActualMonth) 51, 'P1',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , ship_to_descr)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457376#M53651</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-02T13:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457377#M53652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ele entra no 1o if porque a expressão abaixo retorna 0 que fica entre -100 e 51&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum({&amp;lt;VTYPE={010},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; cust_group={'10'},&lt;/STRONG&gt;&lt;/SPAN&gt; MKS_REGION_Descr={'Minas Gerais'}, month= {$(VLastMonth),$(VSecondtoLastMonth),$(VActualMonth)}&amp;gt;}_volume)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457377#M53652</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2018-01-02T13:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457378#M53653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obrigado pela resposta Anil,&lt;/P&gt;&lt;P&gt;Resolveu em parte, pq os clientes que tem configuração &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;cust_group = {'10'} ficaram como "P" sendo que deveriam ser "P1". Estranho né ?!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457378#M53653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T13:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457379#M53654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obrigado pela resposta Clever, pensei que ele avaliava se o cust group =06 e caso não fosse ele passava para o próximo if, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Existe alguma forma do if levar em consideração o cust_group ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457379#M53654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T13:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457380#M53655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Você pode revisar sua lógica colocando essa cláusula fora do Set Analysis e dentro do if&lt;/P&gt;&lt;P&gt;Lembre que um Sum(&amp;lt;Set Analysis&amp;gt;Expressao) retorna um valor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457380#M53655</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2018-01-02T13:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Perfil do cliente</title>
      <link>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457381#M53656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vou tentar aqui Clever. Obrigado&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 15:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Perfil-do-cliente/m-p/1457381#M53656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T15:41:43Z</dc:date>
    </item>
  </channel>
</rss>

