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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
MVP
MVP

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
MVP
MVP

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

- Marcus