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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Last 3 months variable

Hi,

Any help with a variable that load last three months in current year variable.(including current date) to extract data.

Thanks

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like this if your date field is named Date and has numeric date values:

LET vLimit = addmonths(today(),-3);

Table1:

load * from ...sourcetable...

where Date >= $(vLimit);


talk is cheap, supply exceeds demand
felipe_dutra
Partner - Creator
Partner - Creator

Hi!

I would add the function RangeMax () to ensure that only work with the current year.

LET vLimit = Date(Rangemax(YearStart(Today()), addmonths(Today(),-3)));