<?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: Verificar se Nome de um Campos existe em uma Tabela in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329760#M48237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amigo;&lt;/P&gt;&lt;P&gt;Se possível e for o caso, marque as respostas apropriadas como Útil e/ou Correta para que outros membros possam saber que a sua pergunta foi respondida.&lt;/P&gt;&lt;P&gt;Abraço.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 14:46:18 GMT</pubDate>
    <dc:creator>mario_sergio_ti</dc:creator>
    <dc:date>2017-05-15T14:46:18Z</dc:date>
    <item>
      <title>Verificar se Nome de um Campos existe em uma Tabela</title>
      <link>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329756#M48233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Boa tarde!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Supondo que tenho 2 arquivos QVDs, onde o nome da Tabela para os dois arquivos seja COMPRAS, porem num destes arquivo tenho um campos chamado "snAprovado" que o valor 1(seja aprovado), porem no segundo arquivo sequer eu tenha este campo&lt;SPAN style="font-size: 13.3333px;"&gt; "snAprovado".&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;Tem como no momento do LOAD identificar se o campo em questão existe ou não ? sendo que estou lendo os dois arquivos no mesmo LOAD &lt;/SPAN&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBS.: Não gostaria de ler os arquivo em momentos diferente e concatenar as informações.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 19:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329756#M48233</guid>
      <dc:creator>osni_campos</dc:creator>
      <dc:date>2017-04-17T19:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Verificar se Nome de um Campos existe em uma Tabela</title>
      <link>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329757#M48234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amigo,&lt;/P&gt;&lt;P&gt;Logo após ao LOAD do QVD que deseja verificar, poderá testar se o campo existe e gravar o resultado numa variável por exemplo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14924581611173652" jivemacro_uid="_14924581611173652" modifiedtitle="true"&gt;
&lt;P&gt;LET vEXISTE_snAprovado = IF(FieldValueCount('&lt;SPAN style="font-size: 13.3333px;"&gt;snAprovado&lt;/SPAN&gt;'),-1,0)&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 19:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329757#M48234</guid>
      <dc:creator>mario_sergio_ti</dc:creator>
      <dc:date>2017-04-17T19:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Verificar se Nome de um Campos existe em uma Tabela</title>
      <link>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329758#M48235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Talvez ajude: &lt;A href="http://www.clever.com.br/carga-condicional-de-campos-de-um-qvd/" title="http://www.clever.com.br/carga-condicional-de-campos-de-um-qvd/"&gt;Carga condicional de campos de um QVD – Clever Anjos&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 11:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329758#M48235</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-04-18T11:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Verificar se Nome de um Campos existe em uma Tabela</title>
      <link>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329759#M48236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Amigo, conseguiu?&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Abraço.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 17:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329759#M48236</guid>
      <dc:creator>mario_sergio_ti</dc:creator>
      <dc:date>2017-04-24T17:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Verificar se Nome de um Campos existe em uma Tabela</title>
      <link>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329760#M48237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amigo;&lt;/P&gt;&lt;P&gt;Se possível e for o caso, marque as respostas apropriadas como Útil e/ou Correta para que outros membros possam saber que a sua pergunta foi respondida.&lt;/P&gt;&lt;P&gt;Abraço.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 14:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329760#M48237</guid>
      <dc:creator>mario_sergio_ti</dc:creator>
      <dc:date>2017-05-15T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Verificar se Nome de um Campos existe em uma Tabela</title>
      <link>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329761#M48238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Para este casa já precisaria ter uma carga... e não é o caso.. preciso saber se o campo existe no momento da primeira carga, pois se ele não existir vai dar erro no LOAD, é isso que preciso evitar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 11:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329761#M48238</guid>
      <dc:creator>osni_campos</dc:creator>
      <dc:date>2017-05-26T11:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Verificar se Nome de um Campos existe em uma Tabela</title>
      <link>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329762#M48239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amigo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agora só complementar a solução.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14958007801578465" jivemacro_uid="_14958007801578465" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 30.5782px;"&gt;Tab_Temp_Check:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-size: 30.5782px; background-color: inherit; font-weight: inherit;"&gt;First 1 Load * From &amp;lt;destino&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;LET vEXISTE_snAprovado = IF(FieldValueCount(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; background-color: inherit; font-size: 9pt !important;"&gt;'snAprovado'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: inherit; font-size: 9pt !important;"&gt;),-1,0);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;"&gt;Exit Script when vEXISTE_snAprovado = 0;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;"&gt;Drop Table Tab_Temp_Check;&lt;/SPAN&gt;&lt;/P&gt;




&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329762#M48239</guid>
      <dc:creator>mario_sergio_ti</dc:creator>
      <dc:date>2017-05-26T12:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Verificar se Nome de um Campos existe em uma Tabela</title>
      <link>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329763#M48240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Osni,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;v1&lt;/EM&gt;&lt;/STRONG&gt; = '';&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;FOR&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;I&lt;/EM&gt;&lt;/STRONG&gt; = 1 &lt;SPAN style="color: #0000ff;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;QvdNoOfRecords&lt;/SPAN&gt;('TableQVD.QVD')&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;v1&lt;/EM&gt;&lt;/STRONG&gt; =&lt;SPAN style="color: #800000;"&gt;v1&lt;/SPAN&gt;&amp;amp;&lt;SPAN style="color: #0000ff;"&gt;QVDFieldName&lt;/SPAN&gt;('TableQVD.QVD',&lt;SPAN style="color: #800000;"&gt;I&lt;/SPAN&gt;);&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;NEXT&lt;/STRONG&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;If&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;WildMatch&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;v1&lt;/SPAN&gt;,'*snAprovado*') &lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;ELSE&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;EXIT&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Script&lt;/SPAN&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;ENDIF &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Verificar-se-Nome-de-um-Campos-existe-em-uma-Tabela/m-p/1329763#M48240</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-05-26T12:23:11Z</dc:date>
    </item>
  </channel>
</rss>

