Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

sum is not working for interval function

Hi there,

I have a field ED Hours which is the date diff of Departure and Arrival calculating in hours .

So I used -

Interval([Departure DateTime] - [Arrival DateTime], 'h')as [ED_LOS_HOURS]

in qlikview script.

The requirement is when exporting the file in excel the sum is not calculating correctly , everything is fine in qlikview.

Is there any way to calculate the sum when export to excel. ?

ashmitp869_0-1669954437946.png

even I change the measure total model -

ashmitp869_1-1669954662131.png

Change format

ashmitp869_0-1669955044738.png

After export to excel :

ashmitp869_2-1669954787435.png

@marcus_sommer please assist

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

The hours aren't a real date/timestamp value anymore else an integer - therefore, I suggest changing the format-patter to an integer.

- Marcus

View solution in original post

1 Reply
marcus_sommer

The hours aren't a real date/timestamp value anymore else an integer - therefore, I suggest changing the format-patter to an integer.

- Marcus