Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
guilherme_atj
Contributor
Contributor

Filtrando Dados Diferentes

Pessoal.

Preciso conflitar duas colunas de tabelas diferentes (nome 1 da tabela 1 e nome 2 da tabela 2), remover os dados iguais e mostrar somente os dados únicos da coluna nome 1.

E também não sei onde posso incluir o código (no script ou como dimensão calculada)...

Agradeço a ajuda.

1 Solution

Accepted Solutions
afurtado
Partner Ambassador/MVP
Partner Ambassador/MVP

Tmp:

LOAD [Nome 2]

FROM

[\\WW.HL.LAN\SA2\HOME\silvagl\Desktop\teste qv\Tabela2.xlsx]

(ooxml, embedded labels, table is Sheet1);

LOAD [Nome 1]

FROM

[\\WW.HL.LAN\SA2\HOME\silvagl\Desktop\teste qv\Tabela1.xlsx]

(ooxml, embedded labels, table is Sheet1)

Where not Exists([Nome 2],[Nome 1]);

drop Table Tmp;

furtado@farolbi.com.br

View solution in original post

9 Replies
Anonymous
Not applicable

Já tentou usar inner join e depois usar distinct na coluna resultante?

guilherme_atj
Contributor
Contributor
Author

não, pode me ajudar com o codigo?

Anonymous
Not applicable

Tente desta forma, após a carga da tabela 1

INNER JOIN(tabela1)

LOAD

     DISTINCT Nome1

RESIDENT

     [tabela2]

;

el_aprendiz111
Specialist
Specialist

Buenas tardes

Envia una muestra en excel, para ayudarte

guilherme_atj
Contributor
Contributor
Author

Criei um arquivo como exemplo (em anexo).

Não posso juntar as planilhas preciso só fazer um crosscheck entre elas e retornar os nomes que tem na planilha 1 e não tem na 2...

guilherme_atj
Contributor
Contributor
Author

Na verdade não posso juntar as tabelas preciso só fazer um crosscheck entre elas e retornar os nomes que tem na planilha 1 e não tem na 2...


anexei um modelo teste como exemplo.

el_aprendiz111
Specialist
Specialist

Hi

LOAD [Nome 1] AS MY_NAME
FROM
[\\WW.HL.LAN\SA2\HOME\silvagl\Desktop\teste qv\Tabela1.xlsx]
(
ooxml, embedded labels, table is Sheet1);

Left Join

LOAD [Nome 2]  AS MY_NAME
FROM
[\\WW.HL.LAN\SA2\HOME\silvagl\Desktop\teste qv\Tabela2.xlsx]
(
ooxml, embedded labels, table is Sheet1);

afurtado
Partner Ambassador/MVP
Partner Ambassador/MVP

Tmp:

LOAD [Nome 2]

FROM

[\\WW.HL.LAN\SA2\HOME\silvagl\Desktop\teste qv\Tabela2.xlsx]

(ooxml, embedded labels, table is Sheet1);

LOAD [Nome 1]

FROM

[\\WW.HL.LAN\SA2\HOME\silvagl\Desktop\teste qv\Tabela1.xlsx]

(ooxml, embedded labels, table is Sheet1)

Where not Exists([Nome 2],[Nome 1]);

drop Table Tmp;

furtado@farolbi.com.br
guilherme_atj
Contributor
Contributor
Author

Perfeito, deu certo vlw pela ajuda...