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: 
julruiz123
Partner - Creator
Partner - Creator

Seconds between two Times

Hi,

In a table i have two times, what i need is to know how many seconds have elapsed between the two times.

With this sintax i get the hour and minuts but i need the seconds.

interval([Hora Fin] - [Hora Inico]) as Time

Thanks

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

You are almost there! Use the following format to show the result in seconds:

Interval([Hora Fin] - [Hora Inicio], 's') as Time

The 's' will make the Interval() be displayed in seconds.

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hi,

You are almost there! Use the following format to show the result in seconds:

Interval([Hora Fin] - [Hora Inicio], 's') as Time

The 's' will make the Interval() be displayed in seconds.

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

julruiz123
Partner - Creator
Partner - Creator
Author

Thanks!

You're right