<?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: (Script) Campo calculado com valores de 2 tabelas in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209077#M42518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Você teve ter uma tabela chamada PREV_TRAD_PROV: com&amp;nbsp; 2.199 registros.&lt;/P&gt;&lt;P&gt;Pressione Control+T ache essa tabela , clique com o botão direito, "Preview", tire um print e anexe por favor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2016 15:49:38 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2016-10-21T15:49:38Z</dc:date>
    <item>
      <title>(Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209069#M42510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Olá pessoal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preciso de uma ajuda para criar, no script, um campo calculado (&lt;SPAN style="color: #993300;"&gt;Valor3&lt;/SPAN&gt;) com valores de tabelas distintas. Se possível NÃO carregar a Valores1.csv, apenas usar como temporária, é melhor ainda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 13.3333px;"&gt;// Valores 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;cod_empresa,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;Valores1.csv&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;// Valores 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;cod_empresa,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;valor2&lt;/SPAN&gt; - &lt;STRONG&gt;valor1 (carregado da tabela Valores1.csv)&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;Valor3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;Valores2.csv&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parece que há alguma solução usando ApplyMap, mas não entendi como.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBS: Estou usando a versão Demo, não consigo abrir outro .QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obrigado.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 16:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209069#M42510</guid>
      <dc:creator />
      <dc:date>2016-10-20T16:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: (Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209070#M42511</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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #008000;"&gt;// Valores 1&lt;/SPAN&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; color: #008000;"&gt;Valores1:&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: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;cod_empresa,&lt;/SPAN&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-family: inherit; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&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-family: inherit; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor1&lt;/SPAN&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-family: inherit; color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;Valores1.csv&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;mapa:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;mapping load cod_empresa &amp;amp; &lt;SPAN style="color: #993300; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ano_mes&lt;/SPAN&gt;, valor1 resident &lt;SPAN style="color: #008000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Valores1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&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-family: inherit; color: #0000ff;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;cod_empresa,&lt;/SPAN&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-family: inherit; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&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-family: inherit; color: #008000;"&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;valor2&lt;/SPAN&gt; - &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;applymap('mapa',&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;cod_empresa &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #993300; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ano_mes,0&lt;/SPAN&gt;) &lt;/STRONG&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;Valor3&lt;/SPAN&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-family: inherit; color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;Valores2.csv&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209070#M42511</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-10-20T19:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: (Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209071#M42512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;um detalhe, verifique sempre se seu campo ano_mes está igual nos dois lados.&lt;/P&gt;&lt;P&gt;Uma solução usando join&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-family: inherit; color: #0000ff;"&gt;Valores1:&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: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;cod_empresa,&lt;/SPAN&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-family: inherit; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&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-family: inherit; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor1&lt;/SPAN&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-family: inherit; color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;Valores1.csv&lt;/SPAN&gt;;&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;/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-family: inherit; color: #0000ff;"&gt;left join LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;cod_empresa,&lt;/SPAN&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-family: inherit; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&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-family: inherit; color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor2&lt;/SPAN&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-family: inherit; color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #993300;"&gt;Valores2.csv&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor2 - valor1 as valor3&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;resident &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Valores1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Drop table &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Valores1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209071#M42512</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-10-20T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: (Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209072#M42513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Olá Clever,&lt;/P&gt;&lt;P&gt;Obrigado pela atenção.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tentei usar sua solução com o JOIN, mas não deu certo. Precisei incluir uma tabela a mais.&lt;/P&gt;&lt;P&gt;No script abaixo, se não dou o DROP, vejo que os são devidamente carregados. Mas o campo calculado &lt;SPAN style="color: #993300;"&gt;valor_final&lt;/SPAN&gt; não possui valores.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valores1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;cod_empresa,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; Valores1.csv &lt;SPAN style="color: #0000ff;"&gt;WHERE&lt;/SPAN&gt; (ano_mes &amp;gt;= '201301');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;JOIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;// Valores2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;// cod_cia's que não estão na Valores1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;cod_empresa,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;Valores2.csv&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;WHERE&lt;/SPAN&gt; (ano_mes &amp;gt;= '201301' And cod_empresa &amp;gt;= '10000' And cod_empresa &amp;lt;= '19999');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;JOIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;// Valores3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;cod_empresa,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; valor3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;Valores3.csv&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;WHERE&lt;/SPAN&gt; (ano_mes &amp;gt;= '201301');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tabela Final:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;LOAD&lt;/SPAN&gt; c&lt;SPAN style="color: #993300;"&gt;od_empresa,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'x' &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;cod_prod&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;valor1&lt;/SPAN&gt; + &lt;SPAN style="color: #993300;"&gt;valor2&lt;/SPAN&gt; - &lt;SPAN style="color: #993300;"&gt;valor3&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;valor_final&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;Valores1&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DROP&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;table&lt;/SPAN&gt; Valores1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 21:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209072#M42513</guid>
      <dc:creator />
      <dc:date>2016-10-20T21:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: (Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209073#M42514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Posta o seu log por favor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 11:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209073#M42514</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-10-21T11:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: (Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209074#M42515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Não sei onde gerar este log. Estou no Qlikview demo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 14:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209074#M42515</guid>
      <dc:creator />
      <dc:date>2016-10-21T14:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: (Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209075#M42516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141550_Capturar.PNG" style="height: 127px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 15:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209075#M42516</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-10-21T15:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: (Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209076#M42517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Segue o arquivo de log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Não entendo porque meus posts estão sendo moderados. Isso não acontecia antes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 15:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209076#M42517</guid>
      <dc:creator />
      <dc:date>2016-10-21T15:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: (Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209077#M42518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Você teve ter uma tabela chamada PREV_TRAD_PROV: com&amp;nbsp; 2.199 registros.&lt;/P&gt;&lt;P&gt;Pressione Control+T ache essa tabela , clique com o botão direito, "Preview", tire um print e anexe por favor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 15:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209077#M42518</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-10-21T15:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: (Script) Campo calculado com valores de 2 tabelas</title>
      <link>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209078#M42519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aqui estão os Prints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Na tabela PROV_SEGPREV, o campo PREV_EAPP_PROV parece estar vazio, mas contém dados, conforme visto no print Resultado.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Resultado, a coluna PREV_TRAD_PROV deveria ser o cálculo feito no final do script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 16:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Script-Campo-calculado-com-valores-de-2-tabelas/m-p/1209078#M42519</guid>
      <dc:creator />
      <dc:date>2016-10-21T16:13:48Z</dc:date>
    </item>
  </channel>
</rss>

