Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
Michael_Tarallo
Employee
Employee

Learn how to simply calculate duration when you have only one date / time column.

In this video I quickly show you how to create a duration column using 1 single date / time column. This comes in handy when wanting to calculate differences in time period values stored in the same column. 

 

Tags (1)
1 Comment
hornstrup
Partner - Contributor II
Partner - Contributor II

Great little tip

To expand a little - if you want this to be responsive (say you have multiple sensors and want the duration to be dynamic with selections in sensors), that would also be possible using the "Interval" and "Above" chart functions- an expression like:

Measure:
=interval(above(Total Timestamp#(Time,'MM/DD/YYYY hh:mm:ss'))-Timestamp#(Time,'MM/DD/YYYY hh:mm:ss'),'hh:mm:ss')

Just remember the "Total" in the "Above" function when there's more than one dimension. 

/Jan Hornstrup Andersen

0 Likes
192 Views