<?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: Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu? in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475138#M54403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, teria que criar uma expressão para isso.&lt;/P&gt;&lt;P&gt;Vou pensar em um exemplo e faço um post para todos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 16:09:14 GMT</pubDate>
    <dc:creator>nicolett_yuri</dc:creator>
    <dc:date>2015-11-23T16:09:14Z</dc:date>
    <item>
      <title>Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu?</title>
      <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475131#M54396</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, beleza?&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;Sempre após a entrega de relatórios que exibem o resultado de vendas, a curiosidade bate a porta: Eu sei o que vendeu e o que mais vendeu, mas quais são os produtos que não venderam? Quais vendedores não venderam?&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;Eita... se não vendeu quer dizer que o registro/dado não existe, e agora?&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;&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;Como dito anteriormente, se queremos saber "o que não vendeu" então sabemos que esses registros não existem em nossa tabela.&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;Existem algumas maneiras de tentar resolver esse tipo de problema:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Set Analysis&lt;/LI&gt;&lt;LI&gt;Estado Alternativo&lt;/LI&gt;&lt;LI&gt;Incluir registros faltantes&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;O problema de se tentar resolver esse tipo de relatório por expressões (Set Analysis ou Estado Alternativo) é porque não são muito flexíveis e para alguns casos a solução pode ficar bastante complexa fazendo com que o desempenho reduza drasticamente para este relatório.&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;Incluir registros faltantes pode facilitar bastante para criar novos relatórios desse tipo, porém o volume de registros, na tabela fato, pode crescer MUITO fazendo com que o desempenho de TODA a nossa aplicação reduza drasticamente.&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 maneira que estou propondo para resolver esse tipo de "problema" é adicionar registros, porém de uma forma mais inteligente: adicionar registros nas tabelas dimensionais e não na tabela fato.&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 melhor maneira de entender isso é com um exemplo, vamos lá &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&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;&lt;/P&gt;&lt;H1 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-size: 1.6em; margin: 0 0 0.8125em;"&gt;Objetivo&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;Neste exemplo temos uma tabela fato que possui as informações de Vendas por AnoMes, Vendedor e Produto. Quero montar uma tabela que exiba todas as vendas e também o que não foi vendido para conseguir responder algumas perguntas, como por exemplo: Quais os produtos que determinado vendedor não vendeu? Quando? Quais meses ficou sem vender?&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;H1 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-size: 1.6em; margin: 0 0 0.8125em;"&gt;Cenário&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;Abaixo a nossa tabela Fato:&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/11/exemplo01.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo01" class="alignnone jive-image size-thumbnail wp-image-366" height="101" src="https://ynicolett.files.wordpress.com/2015/11/exemplo01.jpg?w=150" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="150" /&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;Script de criação e dados:&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/11/exemplo02.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo02" class="alignnone wp-image-367 jive-image size-full" height="249" src="https://ynicolett.files.wordpress.com/2015/11/exemplo02.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="323" /&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;Ah, já sei: O Yuri não vendeu Monitor no mês de Janeiro. Em Fevereiro ele não vendeu NADA! Em Março ele não vendeu teclado e nem monitor...............&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 resposta é essa, mas vamos criar a solução no QlikView &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&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;H3 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.3em;"&gt;Criando as tabelas dimensionais&lt;/H3&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Como no meu exemplo só tenho uma tabela Fato e não quero poluí-la com registros, vou criar minhas tabelas dimensionais através da tabela Fato. Pule esse passo caso vocês já possuam a tabela Fato separada das dimensionais.&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;As tabelas ficarão ligadas a Fato, então precisamos renomear os campos da tabela Fato para que estes representem chaves.&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;H4 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.2em;"&gt;Renomeando campos chaves&lt;/H4&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/11/exemplo03.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo03" class="alignnone wp-image-368 jive-image size-full" height="30" src="https://ynicolett.files.wordpress.com/2015/11/exemplo03.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="585" /&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;Agora nossa tabela Fato ficará dessa forma:&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/11/exemplo04.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo04" class="wp-image-369 alignnone jive-image size-thumbnail" height="101" src="https://ynicolett.files.wordpress.com/2015/11/exemplo04.jpg?w=150" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="150" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;H4 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.2em;"&gt; &lt;/H4&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;H4 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.2em;"&gt;Criando a tabela Calendário&lt;/H4&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/11/exemplo05.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo05" class="alignnone jive-image wp-image-370 size-full" height="102" src="https://ynicolett.files.wordpress.com/2015/11/exemplo05.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="449" /&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;H4 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.2em;"&gt;Criando a tabela Produto&lt;/H4&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/11/exemplo07.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo07" class="alignnone jive-image wp-image-371 size-full" height="98" src="https://ynicolett.files.wordpress.com/2015/11/exemplo07.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="449" /&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;&lt;/P&gt;&lt;H4 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.2em;"&gt;Criando a tabela Vendedor&lt;/H4&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/11/exemplo06.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo06" class="wp-image-372 alignnone jive-image size-full" height="98" src="https://ynicolett.files.wordpress.com/2015/11/exemplo06.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="456" /&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;&lt;/P&gt;&lt;H4 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.2em;"&gt;Resultado&lt;/H4&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 conseguimos chegar no cenário que eu queria &lt;SPAN style="text-decoration: line-through; color: #333333; font-style: inherit; font-weight: inherit;"&gt;(poderia ter criado assim desde o começo rsrs)&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;A href="https://ynicolett.files.wordpress.com/2015/11/exemplo08.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo08" class="wp-image-373 alignnone size-large jive-image" height="398" src="https://ynicolett.files.wordpress.com/2015/11/exemplo08.jpg?w=600" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="600" /&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;H4 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.2em;"&gt;A solução&lt;/H4&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 vem a parte mais interessante que consiste em adicionar os registros nas tabelas dimensionais para conseguirmos responder as perguntas iniciais, mas não é simplesmente adicionar os registros, iremos criar um "joguinho de chaves" que representam todo o conjunto de dados daquela tabela e depois criar esse mesmo "joguinho de chaves" na tabela Fato.&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;No começo do post eu disse que não adicionaremos registros na tabela Fato, mas na verdade adicionaremos UMA LINHA apenas. &lt;SPAN style="text-decoration: line-through; color: #333333; font-style: inherit; font-weight: inherit;"&gt;Uma pequena mentirinha rsrs &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;Vou fazer a primeira modificação na tabela de vendedor:&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/11/exemplo09.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo09" class="wp-image-374 alignnone jive-image size-full" height="177" src="https://ynicolett.files.wordpress.com/2015/11/exemplo09.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;Reparem que fiz uma leitura da própria tabela Vendedor, devido a desempenho, e no campo de chave (com a tabela Fato) chamado pk_Vendedor, criei o valor fictício 'Todos Registros'. Na tabela Fato não existe o valor 'Todos Registros' para o campo pk_Vendedor, porém podemos adiciona-lo com o valor zero para a coluna VolumeVendas (Esse é o pulo do gato!).&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;Vamos fazer a mesma coisa para as tabelas: Calendário e Produto para depois criar o registro na tabela Fato.&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/11/exemplo10.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo10" class="wp-image-375 alignnone jive-image size-full" height="176" src="https://ynicolett.files.wordpress.com/2015/11/exemplo10.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="472" /&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;&lt;A href="https://ynicolett.files.wordpress.com/2015/11/exemplo11.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo11" class="alignnone wp-image-376 jive-image size-full" height="176" src="https://ynicolett.files.wordpress.com/2015/11/exemplo11.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="477" /&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;Chegou o grande momento de criar a referência 'Todos Registros' na tabela Fato:&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/11/exemplo12.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo12" class="alignnone wp-image-377 jive-image size-full" height="118" src="https://ynicolett.files.wordpress.com/2015/11/exemplo12.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="487" /&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;Veja o resultado no gráfico:&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/11/exemplo131.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo13" class="alignnone jive-image wp-image-379 size-full" height="469" src="https://ynicolett.files.wordpress.com/2015/11/exemplo131.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="404" /&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;Ah Yuri, mas para isso acontecer é só desmarcar a opção "Ocultar Zeros" na aba apresentação do gráfico.&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;Realmente você deve desmarcar essa opção, mas se não fizermos todo aquele procedimento não conseguiremos fazer filtros para manter o resultado e identificar a "não venda":&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/11/exemplo14.jpg" style="color: #1b8be0; font-style: inherit; font-weight: inherit;"&gt;&lt;IMG alt="Exemplo14" class="wp-image-380 alignnone jive-image size-full" height="112" src="https://ynicolett.files.wordpress.com/2015/11/exemplo14.jpg" style="color: #222222; font-style: inherit; font-weight: inherit; border-color: #dddddd; padding: 6px; margin-top: 0.4em;" width="400" /&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;H4 style="color: #111111; font-family: Merriweather, Georgia, Times, serif; font-weight: inherit; font-size: 1.2em;"&gt;Aplicação de exemplo&lt;/H4&gt;&lt;P style="color: #222222; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-bottom: 0.825em; font-size: 14px;"&gt;Para fazer o download da aplicação de exemplo, &lt;A href="https://drive.google.com/file/d/0B2cPTU8EF4R4VWM3VWVGWkhnUWs/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;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; &lt;/H1&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;Eu gosto desse método porque o usuário vai conseguir trabalhar com os filtros e ainda conseguir identificar o que realmente não vendeu e quando; o melhor de tudo é que não precisou adicionar um volume grande de dados na tabela Fato (Apenas em uma linha) e nem criar expressões muito complexas para isso.&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;Até a próxima semana pessoal!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 21:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475131#M54396</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2015-11-04T21:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu?</title>
      <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475132#M54397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bom dia &lt;A href="https://community.qlik.com/qlik-users/28979"&gt;nicolett.yuri&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vou fazer alguns testes por aqui, mas acho que vai melhorar a minha vida.&lt;/P&gt;&lt;P&gt;Tenho exatamente a situação que você menciona, e hoje crio tabelas fato com todas as combinações possíveis para exibir os dados.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valeu!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Márcio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475132#M54397</guid>
      <dc:creator>Marcio_Campestrini</dc:creator>
      <dc:date>2015-11-05T13:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu?</title>
      <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475133#M54398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excelente &lt;A href="https://community.qlik.com/qlik-users/28979"&gt;nicolett.yuri&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Mais uma carta na manga...kkkkk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 17:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475133#M54398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-05T17:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu?</title>
      <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475134#M54399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Legal Márcio, isso vai te ajudar &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 20:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475134#M54399</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2015-11-05T20:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu?</title>
      <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475135#M54400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bom mesmo seu Egnaldo &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 20:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475135#M54400</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2015-11-05T20:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu?</title>
      <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475136#M54401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uma ótima abordagem para o problema!&lt;/P&gt;&lt;P&gt;Parabéns Yuri! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 11:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475136#M54401</guid>
      <dc:creator>cristianor</dc:creator>
      <dc:date>2015-11-06T11:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu?</title>
      <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475137#M54402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prezado Yuri, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muito bom este artigo e esta ajudando muito, pois está era uma das dúvidas que eu tinha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Como sou novato no Qlikview, existe uma forma de mostrar somente os produtos que não venderam?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desde já agradeço a atenção.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parabéns pelo artigo!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 13:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475137#M54402</guid>
      <dc:creator>felipesalzano</dc:creator>
      <dc:date>2015-11-09T13:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu?</title>
      <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475138#M54403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, teria que criar uma expressão para isso.&lt;/P&gt;&lt;P&gt;Vou pensar em um exemplo e faço um post para todos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 16:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475138#M54403</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2015-11-23T16:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aprenda a criar relatórios que respondem as perguntas: O que não vendeu? Quem não vendeu?</title>
      <link>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475139#M54404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, vou ficar no aguardo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 18:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Aprenda-a-criar-relat%C3%B3rios-que-respondem-as-perguntas-O-que-n%C3%A3o/m-p/1475139#M54404</guid>
      <dc:creator>felipesalzano</dc:creator>
      <dc:date>2015-11-24T18:26:34Z</dc:date>
    </item>
  </channel>
</rss>

