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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how can take the time between two dates but in date time format

I have two fields in date time format and I need  the time between both.

how can I do that.

best regards.

11 Replies
Anonymous
Not applicable
Author

Use the Interval() function.

Not applicable
Author

but if I need in a Static Box.

best regars

Anonymous
Not applicable
Author

I presume you mean a Text Box.  If so then put this sample in as the expression :

     =(Interval( date(today()) - date(today()-.5)  ))

Then adjust as per your needs.

Not applicable
Author

atatcBox.PNG.png

this is the object but I cant made an expresión here , I was thinking,

if I can made in the script an expresión?

best regards

Anonymous
Not applicable
Author

Roldan

That looks like a Statistics Box and can only show statistics for a single field, and has nothing to do with your original question.

Please clarify.

Not applicable
Author

Sorry for not bee explicit

aveeeeeee7en
Specialist III
Specialist III

See this:

Time subtract between two time stamps

Regards

Aviral Nag

MarcoWedel

Hi,

your screenshot also suggests, that your Time field is loaded as text and not as a real Time, Date or Timestamp, i.e. there is no underlying numerical value to calculate with. During load use the date#, time# or timestamp# function to correct this (or set your variables TimeFormat, DateFormat or TimestampFormat accordingly).

See attachment.

QlikCommunity_Thread_132014_Pic1.JPG.jpg

QlikCommunity_Thread_132014_Pic2.JPG.jpg

QlikCommunity_Thread_132014_Pic3.JPG.jpg

Besides you can also change the format shown in the statistic box:

QlikCommunity_Thread_132014_Pic4.JPG.jpg

hope this helps

regards

Marco

Not applicable
Author

duracionPNG.PNG.pngthanks a lot this is where I need,

sorry one more question,

in the static box seem like a command 'Time', how can I do that?

thanks a lot