Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
CGJA
Creator II
Creator II

Calculo de # de Retados (date-time)/Estimation of numbers of delays(date-time)

hola buen dia me encuentro tratando de de calcular los numeros de retardos de los empleados:

 

 

todos entran a las 8:30 am pero no he podido encontrar la solucion de dicho dilema o problema, espero me puedan apoyar  y dar una idea de como lo puedo realizar.

 

anexo como documentos para realizar pruebas

 

mil gracias

 

********************************

 

hello good day I am trying to calculate the numbers of lags of employees:

 

 

 

 

all go at 8:30 am but I could not find the solution to this dilemma or problem, I hope I can support and give an idea of ​​how I can make.

 

Annex as documents for testing

 

thank you

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hola,

Mira el documento adjunto. El formato necesita modificarse un poco, ya que tal como viene de excel no es legible tal cual por QlikView.

=Date(Timestamp#(PurgeChar(Estado, '.'), 'DD/MM/YYYY hh:mm tt'))

La función PurgeChar() elimina el "." de "a.m." dejándolo como "am", que QlikView sí sabe interpretar.

Espero que te sirva.

Miguel

View solution in original post

5 Replies
whiteline
Master II
Master II

Hi.

It seems that you loaded your timestamps as strings.

You should use Date#() or Timestamp# functions to convert them to numbers. Then you can use date functions:

Timestamp#(replace(Estado, '.', ''), 'DD/MM/YYYY hh:mm tt')

CGJA
Creator II
Creator II
Author

HI.

hello

good day looks the problem I have and as you realize that when removing the excel file in text format came and put him in aunq Qlilk View

date # (State)

makes me not to change the date or even applying your sentence also comets

Timestamp # (replace (State, '.',''), 'DD / MM / YYYY hh: mm tt')

if not if you know some trick to change the format within Qlik that excel at what they did was seprar same data date-time-schedule and with that the tube Qlik no problems if you pass any alternatima more so that he could reply me would be helpful

thousand grax

Miguel_Angel_Baeyens

Hola,

Mira el documento adjunto. El formato necesita modificarse un poco, ya que tal como viene de excel no es legible tal cual por QlikView.

=Date(Timestamp#(PurgeChar(Estado, '.'), 'DD/MM/YYYY hh:mm tt'))

La función PurgeChar() elimina el "." de "a.m." dejándolo como "am", que QlikView sí sabe interpretar.

Espero que te sirva.

Miguel

CGJA
Creator II
Creator II
Author

mil grx eso es lo que queria

te lo agradesco y al igual a  @whiteline por su apoyo en los que somos primerisos

CGJA
Creator II
Creator II
Author

disculpa pero una pregunta Miguel Angel Baeyens si con ese mismo quisiera hacer una variable de

1er quincena Sep =del 1 al 15

2da quincena Sep= del 16 al 30

y asi sucecivamente

como lo prodria hacer????