Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rkpatelqlikview
Creator III
Creator III

Minimum dates from two dates field

Dear Team,

Please help me on this scenario. There is a condition, I want to consider the Minimum date from two dates and if Date1 is null ,need to consider Date2 vise versa. After generated new date field i need to count days by using Today()-Newdate. Thanks in advance.

1 Solution

Accepted Solutions
jyothish8807
Master II
Master II

Hi ,

Try like this:

If( Sent_Date >= Final_date and len(Sent_Date )>0 and len(Final_date )>0, Sent_Date ,

         if( Sent_Date < Final_date and len(Sent_Date )>0 and len(Final_date )>0, Final_Date,

                if(len(Sent_Date )=0 and len(Final_date )>0,Sent_Date ,Final_date )))

 

For interval:  Date(today(),'DD/MM/YYYY')- Above exp

 

Br,

KC

Best Regards,
KC

View solution in original post

3 Replies
jyothish8807
Master II
Master II

Hi ,

Try like this:

If( Sent_Date >= Final_date and len(Sent_Date )>0 and len(Final_date )>0, Sent_Date ,

         if( Sent_Date < Final_date and len(Sent_Date )>0 and len(Final_date )>0, Final_Date,

                if(len(Sent_Date )=0 and len(Final_date )>0,Sent_Date ,Final_date )))

 

For interval:  Date(today(),'DD/MM/YYYY')- Above exp

 

Br,

KC

Best Regards,
KC
rkpatelqlikview
Creator III
Creator III
Author

Thank you so much KC. 

jyothish8807
Master II
Master II

You are welcome 🙂

Best Regards,
KC