<?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: Melhores Práticas - Formatação de campos sem perder a leitura otimizada in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Melhores-Pr%C3%A1ticas-Formata%C3%A7%C3%A3o-de-campos-sem-perder-a-leitura/m-p/1474605#M54358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show a postagem, estava procurando na comunidade bem isso, como otimizar documento com formatações, vou utilizar as dicas, valeu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2016 17:51:43 GMT</pubDate>
    <dc:creator>marcio150972</dc:creator>
    <dc:date>2016-11-03T17:51:43Z</dc:date>
    <item>
      <title>Melhores Práticas - Formatação de campos sem perder a leitura otimizada</title>
      <link>https://community.qlik.com/t5/Brasil/Melhores-Pr%C3%A1ticas-Formata%C3%A7%C3%A3o-de-campos-sem-perder-a-leitura/m-p/1474602#M54355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Fala pessoal, tudo bom?&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Provavelmente em algum momento você já teve que carregar uma tabela fato grande e notou que alguns campos numéricos e datas não vieram formatados da forma em que precisa para exibi-los e utiliza-los em suas expressões, nossa primeira reação é de adicionar as funções de formatação no script de leitura deste QVD, mas logo percebemos que a leitura que antes ocorria em 20 segundos passou a demorar mais de 10 minutos por que perdemos a leitura otimizada do QVD.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Lembram o que é uma leitura otimizada? Eu falei disso neste post: &lt;A href="http://blogdonicolett.com.br/2014/04/15/melhores-praticas-qvd-optimized/" style="color: #1b8be0; font-style: inherit; font-weight: inherit;" target="_blank"&gt;Melhores Práticas - QVD Optimized&lt;/A&gt;.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Em resumo, um QVD mantém a leitura otimizada somente quando realizamos essas ações em sua leitura:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Renomear campos&lt;/LI&gt;&lt;LI&gt;DISTINCT&lt;/LI&gt;&lt;LI&gt;Omitir Campos (Omit)&lt;/LI&gt;&lt;LI&gt;Where Exists Simples&lt;/LI&gt;&lt;/UL&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;É... lá se vai a leitura otimizada quando utilizo as funções de formatação Date ou Num. Mas afinal, é possível formatar campos sem que percamos a leitura otimizada deste QVD? &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="font-style: inherit;"&gt;SIM!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Primeiro precisamos de uma tabela com campos não formatadas, como a imagem abaixo:&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;A href="https://ynicolett.files.wordpress.com/2015/09/011.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="01" class="wp-image-312 alignnone jive-image size-full" height="167" src="https://ynicolett.files.wordpress.com/2015/09/011.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="278" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Neste exemplo temos o campo DATA e VALOR sem formatação.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Queremos formatar a DATA como 'DD/MM/YYYY hh:mm:ss' e o VALOR com duas casas decimais.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;STRONG style="font-style: inherit;"&gt;IMPORTANTE&lt;/STRONG&gt;: &lt;SPAN style="text-decoration: underline;"&gt;Estamos apenas formatando o campo&lt;/SPAN&gt;, ou seja, não podemos remover a informação de hora, minuto e segundo do campo de DATA, pois isso seria uma transformação de valores.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Agora precisamos criar uma tabela temporária com a formatação correta para os campos que desejamos formatar. Para isso iremos utilizar o comando AutoGenerate.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Note que cada campo formatado deve conter o mesmo nome do campo que será formatado.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Veja o código:&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;A href="https://ynicolett.files.wordpress.com/2015/09/022.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="02" class="alignnone wp-image-314 jive-image size-full" height="79" src="https://ynicolett.files.wordpress.com/2015/09/022.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="495" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;A formatação pode ocorrer sobre o Null(), pois o mais importante é fazermos o QlikView identificar que o campo DATA e o VALOR possuem estas formatações.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Agora podemos carregar o nosso QVD e depois dropar a tabela de formatação de campos:&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;A href="https://ynicolett.files.wordpress.com/2015/09/031.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="03" class="alignnone wp-image-315 jive-image size-full" height="125" src="https://ynicolett.files.wordpress.com/2015/09/031.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="419" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Vejam o processo de execução do script:&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;A href="https://ynicolett.files.wordpress.com/2015/09/041.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="04" class="alignnone jive-image wp-image-316 size-full" height="238" src="https://ynicolett.files.wordpress.com/2015/09/041.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="718" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Muito bom!!&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Por que isso ocorre? Pois &lt;SPAN style="text-decoration: underline;"&gt;o Qlikview cria a associação da formatação para o campo independente da tabela em que este campo esteja (lembre-se da associação de dados)&lt;/SPAN&gt;, ou seja, para o Qlikview o campo DATA possui a formatação 'DD/MM/YYYY hh:mm:ss' e o campo VALOR possui a formatação '#.##0,00'.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;H2 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.4em; margin: 0 0 0.8125em;"&gt;Material para download&lt;/H2&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Segue um qvw demonstrando os passos realizados deste artigo. &lt;A href="https://drive.google.com/file/d/0B2cPTU8EF4R4V2NIMC1nNkwtZkE/view?usp=sharing" style="color: #1b8be0; font-style: inherit; font-weight: inherit;" target="_blank"&gt;Clique aqui!&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;H1 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-size: 1.6em; margin: 0 0 0.8125em;"&gt;Conclusão&lt;/H1&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;É claro que podemos formatar campos através da aba Número das propriedades do documento, mas é importante identificarmos os pequenos erros que cometemos por falta de entendimento de como a ferramenta se comporta para determinadas situações.&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Até a próxima semana pessoal!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2015 21:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Melhores-Pr%C3%A1ticas-Formata%C3%A7%C3%A3o-de-campos-sem-perder-a-leitura/m-p/1474602#M54355</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2015-09-20T21:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Melhores Práticas - Formatação de campos sem perder a leitura otimizada</title>
      <link>https://community.qlik.com/t5/Brasil/Melhores-Pr%C3%A1ticas-Formata%C3%A7%C3%A3o-de-campos-sem-perder-a-leitura/m-p/1474603#M54356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Essa realmente é boa, uso há muito tempo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't worry, be Qlik.&lt;/P&gt;&lt;P&gt;Tonial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 20:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Melhores-Pr%C3%A1ticas-Formata%C3%A7%C3%A3o-de-campos-sem-perder-a-leitura/m-p/1474603#M54356</guid>
      <dc:creator>fernando_tonial</dc:creator>
      <dc:date>2015-10-09T20:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Melhores Práticas - Formatação de campos sem perder a leitura otimizada</title>
      <link>https://community.qlik.com/t5/Brasil/Melhores-Pr%C3%A1ticas-Formata%C3%A7%C3%A3o-de-campos-sem-perder-a-leitura/m-p/1474604#M54357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bacana Yuri,&lt;/P&gt;&lt;P&gt;Vou testar aqui.&lt;/P&gt;&lt;P&gt;em um aplicação que usa QVD por data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 21:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Melhores-Pr%C3%A1ticas-Formata%C3%A7%C3%A3o-de-campos-sem-perder-a-leitura/m-p/1474604#M54357</guid>
      <dc:creator>Ribeiro</dc:creator>
      <dc:date>2015-10-09T21:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Melhores Práticas - Formatação de campos sem perder a leitura otimizada</title>
      <link>https://community.qlik.com/t5/Brasil/Melhores-Pr%C3%A1ticas-Formata%C3%A7%C3%A3o-de-campos-sem-perder-a-leitura/m-p/1474605#M54358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show a postagem, estava procurando na comunidade bem isso, como otimizar documento com formatações, vou utilizar as dicas, valeu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Melhores-Pr%C3%A1ticas-Formata%C3%A7%C3%A3o-de-campos-sem-perder-a-leitura/m-p/1474605#M54358</guid>
      <dc:creator>marcio150972</dc:creator>
      <dc:date>2016-11-03T17:51:43Z</dc:date>
    </item>
  </channel>
</rss>

