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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
FelipeMendes
Contributor II
Contributor II

CONDIÇÃO PARA CRIAR TURNOS

PESSOAL ESTOU COM DIFICULDADES PARA DEFINIR UMA CONDIÇAO EM QUE CRIA UM TUNO DE TRABALHO

EXEMPLO;

TENHOO UMA TABELA CHAMADA INICIO_CADASTRAMENTO E TERMINO_CADASTRAMENTO

ESSAS TABELAS 1 CONTEM A HORA QUE INCIOU O TURNO DE TRABALHO E A OUTRA TEM O HORARIO QUE FINALIZOU

NECESSITO CRIAR UMA CONDIÇÃO NO QUAL INFORMA QUE AQUELE QUE INICIA APARTIR DAS 06:00 E SAI ÀS 17:00 SEJA CATEGORIZADO COMO MANHÃ,
E QUE INICIOU APARTIR DAS 14:00 E SAI COMO 00:00 SEJA CATEGORIZADO COMO TARDE,EQUE
QUE INICIAR APARTIR DA DA 18:00 E SAI COMO 06:00 SEJA CATEGORIZADO COMO NOITE.

2 Replies
vinieme12
Champion III
Champion III

Try below

if(hour(INICIO_Registramento)>=18 ,'NIGHT'

,if(hour(INICIO_Registramento)>=14 ,'AFTERNOON'

,if(hour(INICIO_Registramento)>=6,'MORNING'

)))

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
FelipeMendes
Contributor II
Contributor II
Author

Infelizmente o problema não foi solucionado.