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

Incremental load with mixed date format , and add data with above the max date and below the maxdate

I have single table with Mixed date. I need create a incremental load on that table. I need to add updated records for that table.  My customer add new records as well as some times missing old days records also enter. Please suggest me, how can i create incremental load for that..

Ex: 

Date:

31/12/2018,

01-01-2019,

18-01-19

like these , and new records enter above and below the max date of the table..

Labels (1)
2 Replies
PrashantSangle

try below

where alt(date#( dateField, 'YYYY/MM/DD' ),
date#( dateField, 'MM/DD/YYYY' ),
date#( dateField, 'MM/DD/YY' ))>'$(vMaxDate);

Regards
Prashant Sangle
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 🙂
Vegar
MVP
MVP

To fetch date with different format use ALT().

ALT(
date#( dateField, 'DD/MM/YYYY' ),
date#( dateField, 'DD-MM-YYYY' ),
date#( dateField, 'DD-MM-YY' )
)

This method works as long you don't have overlapping formats such as 'MM-DD-YYYY' together with 'DD-MM-YYYY'. This is trouble when having a date like 01-02-2019 that fits into both formats.