Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate com Distinct

Bom dia,

Estou tentando realizar uma concatenação de duas tabelas seguido de uma remoção de registros duplicado, entretanto a remoção dos duplicado com função distinct não está ocorrendo e não sei o porque!

Anexei o arquivo para explicitar melhor a situação, caso alguem já tenha passado por esse problema ficaria muito grato por compartilharem!

Labels (3)
1 Solution

Accepted Solutions
maiconmello
Creator III
Creator III

Boa tarde @WallaceReis, Isso acredito que resolve !

//////////////////// TABELA 1

TEMP:

LOAD * INLINE

[

NOME , CIDADE , UF

WALLACE   , A , A

ANDRE , B , B

ROBERTO ,     C , C

];

//CONCATENAR

Concatenate (TEMP)

/////////////////// TABELA 2

LOAD * INLINE

[

NOME , UF

WALLACE   , B

ANDRE , C

MAURICIO , D

CAIO , E

] where not Exists(NOME);    //Coloque o where not exist.

View solution in original post

2 Replies
maiconmello
Creator III
Creator III

Boa tarde @WallaceReis, Isso acredito que resolve !

//////////////////// TABELA 1

TEMP:

LOAD * INLINE

[

NOME , CIDADE , UF

WALLACE   , A , A

ANDRE , B , B

ROBERTO ,     C , C

];

//CONCATENAR

Concatenate (TEMP)

/////////////////// TABELA 2

LOAD * INLINE

[

NOME , UF

WALLACE   , B

ANDRE , C

MAURICIO , D

CAIO , E

] where not Exists(NOME);    //Coloque o where not exist.

Not applicable
Author

Maicon, boa tarde!

Primeiramente muito obrigado!

Simples e fácil, isso mesmo já resolve!!!!