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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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
Partner - Champion III
Partner - Champion III

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