Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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:???
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;
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;
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 ... Perfeito brother tinha achado o subfield, mas não tinha conseguido implementar!
Obrigado brow
Sempre à disposição meu caro!