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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change Interval into NUM


Hi,

I am abstracting interval from starttime and endtime. but the format for the same is time format. i want to use it in a calculation but when i changes it to num problem arises.please help.

Regards,

piyush

7 Replies
Not applicable
Author

hi

try this

num(date(datefieldintervalcalculation))

Not applicable
Author

Hi,

I am using Interval([Stattime]-[Endtime]). please use above calculation on this. i didn't get it.

Regards,

Piyush

Not applicable
Author

Hi Try like this..

Interval(Date(StartDate,'DD/MM/YYYY') -Date(ENDDate,'DD/MM/YYYY') ,'D') it will give you number of days...

Thanks,

Selva

Not applicable
Author

hi

suppose your starttime and endtime in same date format.

then

num(interval( Stattime-Endtime, 'D hh:mm' ))

Not applicable
Author

Hi,

We cannot use num before interval cos its format changes.but Got answer after trying.

Regards

Piyush.

Not applicable
Author

Hi,

Got Answer. Thanks for ur valuable suggestion

Regards,

Piyush

stantrolav
Partner - Creator II
Partner - Creator II

Mark Answer that is correct. It'll help community not to spend time for reading idle posts.