Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

krishna4bo
Contributor

Calculating time diff

Hi All,

How to Calculate time diff .

Ex: To-From as Duration

    

Thanks,

Krishna

1 Solution

Accepted Solutions
amit_saini
Honored Contributor III

Re: Calculating time diff

PFA!

=interval(time([      To  ], 'hh:mm:ss') - time([From ], 'hh:mm:ss'), 'hh:mm:ss')

Regards,

AS

View solution in original post

3 Replies
amit_saini
Honored Contributor III

Re: Calculating time diff

PFA!

=interval(time([      To  ], 'hh:mm:ss') - time([From ], 'hh:mm:ss'), 'hh:mm:ss')

Regards,

AS

View solution in original post

krishna4bo
Contributor

Re: Calculating time diff

Hi Amit,



How to Calculate 24 - interval(time([      To  ], 'hh:mm:ss') - time([From ], 'hh:mm:ss'), 'hh:mm:ss')


Thanks,

Krishna

amit_saini
Honored Contributor III

Re: Calculating time diff

Like this???

=interval(time('24:00:00', 'hh:mm:ss')-

interval(time([      To  ], 'hh:mm:ss') - time([From ], 'hh:mm:ss'), 'hh:mm:ss'))

Thanks,

AS