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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
sagarrahul
Creator
Creator

date difference

in i want
current date subtract max date ie (current date - max date )
after that when it output arrives if the differnce between date is 1 day ie
eg (04-Feb-2016 - 03-Feb-2016) then i another column it should show difference as '1'and in another column its sholud its claim no difference
and its max date in another coulmn  .

CLM_INTIMATION_DATE

max date                 

claim no       current date
28-Jan-2016     28-Jan-2016RC-HS15-103357115/30/2016
03-Feb-2016     03-Feb-2016RC-HS15-103411395/30/2016
08-Mar-2016     08-Mar-2016RC-HS15-103433615/30/2016
22-Mar-2016     22-Mar-2016RC-HS15-103365295/30/2016
08-Feb-2016     08-Feb-2016RC-HS15-103365205/30/2016
08-Feb-2016     08-Feb-2016RC-HS15-103375265/30/2016
15-Feb-2016     22-Mar-2016RC-HS15-103433615/30/2016
11-Feb-2016     12-Feb-2016RR-HS15-103369405/30/2016
11-Feb-2016     13-Feb-2016RR-HS15-103369405/30/2016
      14-Feb-2016RR-HS15-103419785/30/2016
20-Jan-2016                           20-Jan-2016             RR-HS15-103412465/30/2016
09-Mar-2016                           09-Mar-2016             RR-HS15-103412465/30/2016
09-Mar-2016                             07-Mar-2016               RR-HS15-103412465/30/2016

so pls help me in this as soon as possible

15 Replies
sagarrahul
Creator
Creator
Author

i max dreamer this is whr i want in my output .

max date                 claim no       current date

differnce

(current date-max date)

clm num
     28-Jan-2016RC-HS15-103357115/30/2016125            here dif is not 1 so it should be blank
     29-May-2016RC-HS15-103411395/30/20161RC-HS15-10341139
     08-Mar-2016RC-HS15-103433615/30/2016119                                 -
     22-Mar-2016RC-HS15-103365295/30/201685                             -
     08-Feb-2016RC-HS15-103365205/30/201685                              -
     08-Feb-2016RC-HS15-103375265/30/201671                                -
     29-May-2016RC-HS15-103433615/30/20161RC-HS15-10343361
     12-Feb-2016RR-HS15-103369405/30/2016114
     13-Feb-2016RR-HS15-103369405/30/2016114
      14-Feb-2016RR-HS15-103419785/30/2016107
    29-May-2016  RR-HS15-103412465/30/20161  RR-HS15-10341246
       09-Mar-2016RR-HS15-103412465/30/201671
       07-Mar-2016 RR-HS15-103412465/30/2016111

PrashantSangle

Hi,

For diff

interval(currentDate-maxDate)

for clum Num

if(interval(currentDate-maxDate)=1,claimNo)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Use this for column clm num:

IF (Interval(currentDate - maxDate, 'D') = 1, ClaimNo)


or to make your table independent from the currentDate column, use


IF (Interval(today() - maxDate, 'D') = 1, ClaimNo)

sagarrahul
Creator
Creator
Author

ty bro it working fine

sagarrahul
Creator
Creator
Author

ty bro it working fine

PrashantSangle

Hi,

If you got the correct answer then please close the thread.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂