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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
rajtechnocraft
Creator
Creator

Help required in adding offset of 10 days to my datefield

Hi Experts, I am facing issue with date format I tried using date #,makedate and other functions but am not able to add offset of 10 days to my date field RFS_DATE ex if this is date 10-07-2013 then i want to add offset of 10 days so the result would be 20-07-2013 Attached is the qvw. Regards Raj

7 Replies
Not applicable

Hello Raj,

your DATE field is in string format only.

That ´s the reason you can´t do some calculations with it.

Change your load script so that QV is able to interpret your DATE field

as a number.

If you load your data you can use a statement like this:

Date(Date#(RFS_DATE,'YYYY-MM-DD'),'YYYY-MM-DD') as RFS_DATE

DATE# is used for interpretation of a given string.

DATE is used to get the format we want to have.

 

See the attached example for the syntax.

Good luck!

Rainer

Not applicable

TRY THIS

=date(DATE#('10-07-2013','DD-MM-YYYY') +10,'DD-MM-YYYY')

OR TRY THIS

=date(DATE#(RFS_DATE,'DD-MM-YYYY') +10,'DD-MM-YYYY')

er_mohit
Master II
Master II

TRY THIS IN TEXT OBJECT

=DATE(DATE(Today())+10,'DD-MM-YYYY')

Not applicable

Raj,

please see also the document written by Henric Cronström:

     http://community.qlik.com/docs/DOC-2811

Rainer

anandathome
Creator
Creator

See if the attached helps

Not applicable

hi RajTechnocraft

if your problem resolved then marked it as either correct or helpful according to your question, and close this thread, so that it might be helpful for other developer.

Regards

vishwaranjan

Not applicable

DATE(Day(Today())+10,'DD-MM-YYYY')