Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

interval function?

what is interval function work  i am not talking about interval  match

1 Solution

Accepted Solutions
PrashantSangle

Hi,

The interval function formats the expression as a time interval according to the string given

as a format-code. If the format code is omitted, the

time format set in the operating system is used. Intervals may be formatted as a

time, as days or as a combination of days, hours, minutes, seconds and fractions

of seconds.

Syntax:

Interval(expression[,Format Code])

Example:

interval( A-B, 'D hh:mm' ) where A=97-08-06 09:00:00 and B=96-08-06 00:00:00

returns:

String:365 09:00

Number : 365.375

interval( A ) where A=1.375

returns:

String:09:00:00

Number : 0.375

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Take a look in the help, it seems clear, otherwise give me an example of what is not clear

PrashantSangle

Hi,

The interval function formats the expression as a time interval according to the string given

as a format-code. If the format code is omitted, the

time format set in the operating system is used. Intervals may be formatted as a

time, as days or as a combination of days, hours, minutes, seconds and fractions

of seconds.

Syntax:

Interval(expression[,Format Code])

Example:

interval( A-B, 'D hh:mm' ) where A=97-08-06 09:00:00 and B=96-08-06 00:00:00

returns:

String:365 09:00

Number : 365.375

interval( A ) where A=1.375

returns:

String:09:00:00

Number : 0.375

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
senpradip007
Specialist III
Specialist III

The interval function formats the expression as a time interval according to the string given as a format-code. If the format code is omitted, the time format set in the operating system is used. Intervals may be formatted as a time, as days or as a combination of days, hours, minutes, seconds and fractions of seconds.

interval( A-B, 'D hh:mm' ) where A=97-08-06 09:00:00 and B=96-08-06 00:00:00 returns 365 09:00

Not applicable
Author

if u convert A into string u will get 365?

incase b is  also near to same right?

can u give clear explination i am confused resulting output  but i understood work of interval