Skip to main content
Announcements
Applications are open for the 2024 Qlik Luminary Program. Apply by December 15 here.
cancel
Showing results for 
Search instead for 
Did you mean: 
filipemknh
Contributor III
Contributor III

Filtrar hora de coluna com data e hora

Olá Pessoal, tenho uma coluna com data e hora do tipo 13/10/2020 18:08:00 . Gostaria de poder filtrar no carregamento todas as datas porém que estiverem entre 7:30:00 até 22:00:00.

Já tentei de várias formas, com where, mas só consigo quando crio uma coluna auxiliar no .csv separando a hora da data antes de carregar. Gostaria de poder tratar isto no qliksense mesmo.

Tentei separar ela no carregamento e depois com where pegar só as horas que me são uteis.. mais não deu.

LOAD

created_at,

Time(Time(created_at,'DD/MM/YYYY hh:mm:ss'), 'hh:mm:ss') as Tempo3,


FROM [lib://Gestão:Dropbox - filipe.mattos@rbt.psi.br/rbt - técnica/Pasta1.xlsx]
(ooxml, embedded labels, table is Planilha1)

where Tempo3 >= '**/**/**** 07:30:00' and Tempo3 <= '**/**/**** 22:00:00';

 

======

LOAD

created_at,

Time(Time(created_at,'DD/MM/YYYY hh:mm:ss'), 'hh:mm:ss') as Tempo3,


FROM [lib://Gestão:Dropbox - filipe.mattos@rbt.psi.br/rbt - técnica/Pasta1.xlsx]
(ooxml, embedded labels, table is Planilha1)

where Tempo3 >= 'DD/MM/YYYY 07:30:00' and Tempo3 <= 'DD/MM/YYYY 22:00:00';

 

Tentei aplicar direto na coluna mas também não deu.

LOAD

created_at,

FROM [lib://Gestão:Dropbox - filipe.mattos@rbt.psi.br/rbt - técnica/Pasta1.xlsx]
(ooxml, embedded labels, table is Planilha1)

where created_at >= 'DD/MM/YYYY 07:30:00' and created_at <= 'DD/MM/YYYY 22:00:00';

 

Se alguém já tiver passado por este problema e puder me auxiliar, agradeço! 

Grande abraço!

10 Replies
filipemknh
Contributor III
Contributor III
Author

Rafael, boa tarde! Cara.. funcionou perfeito! Exato!

Muito obrigado pelo auxílio!! Resolveu o problema!!!!!!