Skip to main content
Announcements
Announcing Qlik Talend® Cloud and Qlik Answers™ to accelerate AI adoption! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

6 months to date

Hi All

I'm trying to write in my script a quick date value-  ' 6 month to date'

I add other values that I am  using in my calender like the following quick dates:

example for this week:

load

     fulldate,

     'this week' as quickdate

     Resident Calendar

     where fulldate>= WeekStart($(vToday))

     and FullDate <= $(vToday);

so how can I calculate 6 months to date??

I really appreciate your help

Thanks in advance!

1 Solution

Accepted Solutions
sushil353
Master II
Master II

Hi,

do you want to get past six month data in script loading or in expression in chart.

in either case you can use Addmonths() function to go back 6 month back.

for example : Addmonths(datefield,-6)

HTH

Sushil

View solution in original post

2 Replies
sushil353
Master II
Master II

Hi,

do you want to get past six month data in script loading or in expression in chart.

in either case you can use Addmonths() function to go back 6 month back.

for example : Addmonths(datefield,-6)

HTH

Sushil

Not applicable
Author

Thank you so much!