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: 
RajuNatesan
Contributor II
Contributor II

Interval function in Qlik Sense

I am using Interval function to find the difference between two timestamps in days and it is giving me the exact result in data load editor. But while using this calculated field in charts, it is showing a different value.

Below is the data snippet that needs the clarification

RajuNatesan_0-1747488659440.png

Interval function used in Qlik Sense Data Load editor : Interval(TS-1 - TS-2, 'd') as DUR.

When I use SUM(DUR) in table chart, it is showing me 3.77, against 3.

Any suggestions on how to get this issue fixed

Labels (3)
1 Reply
rubenmarin

Hi, 3.77 is the correct value, isn't? If you want to reduce to full days you can use Sum(Floor(DUR)) to reduce each value to the lowest integer, or Floor(Sum(DUR)) to reduce the result