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: 
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

Labels (1)
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