Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajesh
Creator II
Creator II

Incremental load date issue

Hi All,

I am trying to do incremental load with opened_at (Date field) in source it is like (opened_at = '2017-08-02 11:30:45.0000000').

after i doing max(opened_at) as Maxopendate; it is showing like 42949.778564819.

Please see below error i am facing while trying to only newly inserted data with usong opened_at date field,

Can any one suggest.Capture.PNG

Thanks,

Rajesh

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try converting it into a timestamp like below.

Let vDate = Timestamp(peek('Max',0','Max'),'YYYY-MM-DD hh:mm:ss');

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

8 Replies
Chanty4u
MVP
MVP

did you tried to convert that into proper date format and do it

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try converting it into a timestamp like below.

Let vDate = Timestamp(peek('Max',0','Max'),'YYYY-MM-DD hh:mm:ss');

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
tresesco
MVP
MVP

Format your variable like:

Let vTime=Timestamp(Peek('Maxopendate'), 'YYYY-MM-DD hh:mm:ss.fffffff')

gsbeaton
Luminary Alumni
Luminary Alumni

You are mixing date formats.  You will have to convert the Qlik timestamp to match the source table time format.

Something like this: date(opened_at,'DD/MM/YYYY hh:mm:ss[.fff]')

Hope this helps.

George

Rajesh
Creator II
Creator II
Author

Thanks Kaushik,

but it showing error like below

Capture.PNG

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Your variable should be in single quote

Where Field = '$(vVariable)';

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
tresesco
MVP
MVP

Try putting single quotes around variable like:

...

     where opened_at > '$(YourVariable)' ;

Rajesh
Creator II
Creator II
Author

its done now

Thank u much Kaushik.

Regards

Rajesh