Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

Difference between two dates

Hello,

I want to differentiate between two dates which are in timestamp format and display the difference value in "Days"

Example:-

Field 1 = 4/11/2013 12:40:36

Field 2 = 4/16/2013 12:00:00

Difference value should be "5 days". Any idea?

Tags (1)
3 Replies

Re: Difference between two dates

Hi,

     Try this.

     Interval(Field2 - Field1 ,'D') as Diff_in_Days.

Regards,

Kaushik Solanki

MVP
MVP

Re: Difference between two dates

Hi,

I think this is the duplicate post, anyway try like this

=Ceil(Interval(Date#('4/16/2013 12:00:00', 'MM/DD/YYYY hh:mm:ss') - Date#('4/11/2013 12:40:32', 'MM/DD/YYYY hh:mm:ss'), 'DD' ))

Hope this helps you.

Regards,

Jagan.

richard
Contributor

Re: Difference between two dates

Try this example app...

Community Browser