Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
gbessern
Contributor
Contributor

Converter texto em data ( 2019_10(OUT)_1ª Quinzena )

Bom dia,

Preciso ler e converter um texto em data. Os valores tem o formato "2019_10(OUT)_1ª Quinzena". Tem como transformar esse texto em data no qlikview?

Exemplos:

201 Previsão ENTREGA /
2020_04(ABR)_2ª Quinzena
2019_11(NOV)_2ª Quinzena
2020_09(SET)_2ª Quinzena
1 Solution

Accepted Solutions
Gustavo
Contributor II
Contributor II

Olá!

Tenta assim:

Inline:
LOAD * INLINE [
Previsão Entrega
2020_04(ABR)_2ª Quinzena
2019_11(NOV)_2ª Quinzena
2020_09(SET)_2ª Quinzena
];

LOAD
Date(Date#(Left([Previsão Entrega],12),'YYYY_DD(MMM)'),'DD/MM/YYYY') as Convertido
Resident Inline;

View solution in original post

2 Replies
Gustavo
Contributor II
Contributor II

Olá!

Tenta assim:

Inline:
LOAD * INLINE [
Previsão Entrega
2020_04(ABR)_2ª Quinzena
2019_11(NOV)_2ª Quinzena
2020_09(SET)_2ª Quinzena
];

LOAD
Date(Date#(Left([Previsão Entrega],12),'YYYY_DD(MMM)'),'DD/MM/YYYY') as Convertido
Resident Inline;

gbessern
Contributor
Contributor
Author

Funcionou, muito obrigado. Não conhecia a função left!