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

Help with dates?

Hi All,

i have a requirement where i need to calculate the fields based on the date (for example Payment Date) which falls between two dates (for example start and end date).

PFA attached files for sample data.

Thanks

2 Replies
MarcoARaymundo
Creator III
Creator III

in this case tray create a flag in load time..

if([Payment Date] >= StartDt and [Payment Date] <= EndDt, 1, 0) as Flag

maxgro
MVP
MVP

LOAD

     *,

     [Payment Date] >= StartDt and [Payment Date] <= EndDt as Flag

;

LOAD ID,

     date(date#([Payment Date], 'YYYYMMDD')) as [Payment Date],

     StartDt,

     EndDt

FROM

     [test.xls] (biff, embedded labels, table is Sheet1$);

1.png