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: 
Not applicable

Limit load into QVD

How can I limit the number of weeks into a QVD? For example, I have over 40 weeks of sales history data in a table but I only want to load the most recent 10 weeks of data.

How can I do this?

1 Reply
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

you can filter weeks taking as reference you main date field:

YOUR_TABLE:

LOAD *

from table.qvd(qvd)

where week(Date) > Week(today())-10 and Year(Date) = Year(today());

so you'll get current week and the 9 before,

regards