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

Announcements
Qlik Unveils New Agentic Capabilities Across Analytics, Data Engineering, and Trust: 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

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