Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mario_ti
Creator
Creator

Dividir coluna

Pessoal,

Bom Dia

Tenho uma coluna no banco que guarda umas informações na mesma coluna e eu preciso separar.

Consigo isso pelo banco, mas a carga esta muito lenta e queria saber se no QLIK consigo fazer isso:

colunas:

NOTA | COLUNA_ERRO

registro:

123456 | E21 E22 E23 ...

Preciso q cada um venha em uma linha:

colunas:

NOTA | COLUNA_ERRO

registro:

123456 | E21

123456 | E22

123456 | E23

Tem como fazer isso no QLIK:???

1 Solution

Accepted Solutions
Thiago_Justen_

Mario,

Verifique assim:

temp:

load * Inline [

NOTA,COLUNA_ERRO

123456, E21 E22 E23

];

final:

NoConcatenate

Load

NOTA,

SubField(COLUNA_ERRO,CHR(32)) AS COLUNA_ERRO

Resident temp;

Drop Table temp;

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago

View solution in original post

4 Replies
Thiago_Justen_

Mario,

Verifique assim:

temp:

load * Inline [

NOTA,COLUNA_ERRO

123456, E21 E22 E23

];

final:

NoConcatenate

Load

NOTA,

SubField(COLUNA_ERRO,CHR(32)) AS COLUNA_ERRO

Resident temp;

Drop Table temp;

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
Thiago_Justen_

No seu caso, o subfield bastaria. Utilizei o Chr(32) que representa o espaço (que é o delimitador do seu campo coluna_erro).

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
mario_ti
Creator
Creator
Author

thiago.justen‌ ... Perfeito brother tinha achado o subfield, mas não tinha conseguido implementar!

Obrigado brow

Thiago_Justen_

Sempre à disposição meu caro!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago