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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pointage

AutoNumiEventNumbDoorNumberdEvent_DateiUserNum
3316357147216/06/2014 08:15150
3316507159216/06/2014 08:19150
3316617169216/06/2014 08:21150
3343438166216/06/2014 18:50150

Commet sortir a partir du champ " dEvent_Date" comme  date d'entré  08:15 et  date de sortie 18:50

5 Replies
maxgro
MVP
MVP

in a text box?

=time(min(frac(Date#(dEvent_Date, 'DD/MM/YYYY hh:mm'))))

=time(max(frac(Date#(dEvent_Date, 'DD/MM/YYYY hh:mm'))))

Not applicable
Author

Dans le script .

hic
Former Employee
Former Employee

The conversion to time is straightforward:

     Time(Frac(Date#(dEvent_Date, 'DD/MM/YYYY hh:mm'))) as Time

But how do you know whether a timestamp is Entré or Sortie? If you say that anything before 12:00 is an Entré and anything after is a Sortie, then you can do the following:

     If( Frac(Date#(dEvent_Date, 'DD/MM/YYYY hh:mm'))<=0.5,

          Time(Frac(Date#(dEvent_Date, 'DD/MM/YYYY hh:mm'))) as Temp_dEntre,

     If( Frac(Date#(dEvent_Date, 'DD/MM/YYYY hh:mm'))>0.5,

          Time(Frac(Date#(dEvent_Date, 'DD/MM/YYYY hh:mm'))) as Temp_de_Sortie,

But I am not sure that that is a good criterion...

HIC

Not applicable
Author

la fonction min ne marche pas.
hic
Former Employee
Former Employee

Si tu utilises Min() dans le script, tu doit aussi utiliser un Groupe By, par example:

Load 

    iUserNum,

    Min (dEvent_Date)

    From ...

    Group By iUserNum;

HIC