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

Date plus one month

Hi There,

I load a specific date like this:

DATE(DATE#( left([Posted Date],11), 'DD-MMM-YY')) as [Posted Date],

Please help me load an additional field which is a date exactly one month later (same day of the month, but one month later).

So if [Posted Date] = 2013/01/22 then [Next Month] = 2013/02/22

     if [Posted Date] = 2012/12/05 then [Next Month] = 2013/01/05

Thanks in advance,

Gerhard

1 Solution

Accepted Solutions
fosuzuki
Partner - Specialist III
Partner - Specialist III

Try this:

addmonths(DATE(DATE#( left([Posted Date],11), 'DD-MMM-YY')), 1) as [Posted Date+1],

View solution in original post

2 Replies
fosuzuki
Partner - Specialist III
Partner - Specialist III

Try this:

addmonths(DATE(DATE#( left([Posted Date],11), 'DD-MMM-YY')), 1) as [Posted Date+1],

gerhardl
Creator II
Creator II
Author

Perfect, thanks