Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Sra1bandi
Contributor III
Contributor III

Exceeded days required

Hi Team,

Need the exceeded days 

 

Inline

[

Id    End date

1       03-10-2022

2        02-10-2022

3       04-10-2022

4       06-10-2022]

 

for suppose today is i.e, 03-10-2022

i need 

if End date is < Today i need to show as 0

if End date is > Today i need to show as  

for suppose for id 3 = 1 Day

id 4 = 2 daays

 

thanks,

sra1.

Labels (1)
1 Solution

Accepted Solutions
JHuis
Creator III
Creator III

Dear Sral,

 

Load
*,
if(Enddate<Today(),0,If(Enddate>Today(),Enddate-Today(),0)) as DaysDifference;

LOAD * Inline

[

Id , Enddate

1 , 03-10-2022

2 , 02-10-2022

3 , 04-10-2022

4 , 06-10-2022];

 

View solution in original post

1 Reply
JHuis
Creator III
Creator III

Dear Sral,

 

Load
*,
if(Enddate<Today(),0,If(Enddate>Today(),Enddate-Today(),0)) as DaysDifference;

LOAD * Inline

[

Id , Enddate

1 , 03-10-2022

2 , 02-10-2022

3 , 04-10-2022

4 , 06-10-2022];