Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
pala_jagadeesh
Contributor III
Contributor III

Calculate days duration between startdate and enddate

Hi,

I have Startdate and Enddate, from this I want to calculate days duration like below

Time gap:
0-14 days
15-28 days
>28 days

startdate enddate
25-Oct-2022 29-Oct-2022
28-Oct-2022 02-Nov-2022
25-Nov-2022 30-Dec-2022
30-Nov-2022 30-Dec-2022
02-Dec-2022 31-Dec-2022
Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

Looks to fit in an if() statement:

If(enddate - startdate>28,'>28 days',if(enddate - startdate)>=15,'15-28 days','0-14 days'))

View solution in original post

1 Reply
Or
MVP
MVP

Looks to fit in an if() statement:

If(enddate - startdate>28,'>28 days',if(enddate - startdate)>=15,'15-28 days','0-14 days'))