Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
davordzi1951
Contributor II
Contributor II

Calculating Time between time stamps

We're developing Qlik Sense apps for a hospital and we need help on how to calculate the time difference between STARTTIME and SPECIMENCOLLECTIONTIME  formatted to "hh:mm:ss"? Also how can the results be ranked in a Qlik Sense visualization object? Which visualization chart is appropriate for this?
 
Here is a snapshot of the table we're using.
Timestamp.PNG
1 Reply
Gysbert_Wassenaar

Basically this: Interval(SPECIMENCOLLECTIONTIME-STARTTIME, 'hh:mm:ss')

But your fields need to be datetime (aka timestamp) values. String values are text and can't be subtracted. 

How you visualize those values depends on the purpose. What is the question that you want to answer with the visualization? Perhaps you should just start with a bar chart sorted in descending order by the interval values.


talk is cheap, supply exceeds demand