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: 
Not applicable

What datatype to make calculation?

Goal:

Display the value in hours by calculating end - begin.

Problem

I have table with data

BeginEnd
2011-11-10 12:12:122011-11-12 12:12:12
2011-11-10 12:12:122011-11-11 08:12:12

I need help with following issue:
*What datatype do I need to use in order calculate? I need a similiar datatype as datatime from SQL server. It doesn't work to use QlikView's datatype date to make a calculation

// JJ

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     To get hour difference use Interval method

     Interval(End-Begin,'hh') which will give you the hour difference

Celambarasan

View solution in original post

2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use TimeStamp for this type of data.

Celambarasan

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     To get hour difference use Interval method

     Interval(End-Begin,'hh') which will give you the hour difference

Celambarasan