Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
bryan_21
Contributor III
Contributor III

Qlik Sense exclude specific data from loading

Hello, how can I exclude the year 2017-2020 data from my table before loading. See below.

 

LOAD
     YEAR,
     MONTH,
     DAY
     FROM [lib://QVDs/A/CS.QVD]
(qvd);

 

The YEAR has 2017 to 2022 data but I would like to get the 2021 to 2022 only.

Thank you!

Labels (1)
3 Solutions

Accepted Solutions
Lisa_P
Employee
Employee

LOAD
     YEAR,
     MONTH,
     DAY
     FROM [lib://QVDs/A/CS.QVD]
(qvd)

where YEAR >2020;

View solution in original post

Alagumurugan
Contributor
Contributor

LOAD
YEAR,
MONTH,
DAY
FROM [lib://QVDs/A/CS.QVD]
(qvd)
where match(year,'2021','2022');

View solution in original post

BrunPierre
Partner - Master
Partner - Master

Maybe you want it to be dynamic, so try this

LOAD * FROM [lib://QVDs/A/CS.QVD](qvd)

Where YEAR >= Year(AddYears(YearStart(Today()),-1));

 

View solution in original post

4 Replies
Lisa_P
Employee
Employee

LOAD
     YEAR,
     MONTH,
     DAY
     FROM [lib://QVDs/A/CS.QVD]
(qvd)

where YEAR >2020;

Alagumurugan
Contributor
Contributor

LOAD
YEAR,
MONTH,
DAY
FROM [lib://QVDs/A/CS.QVD]
(qvd)
where match(year,'2021','2022');
BrunPierre
Partner - Master
Partner - Master

Maybe you want it to be dynamic, so try this

LOAD * FROM [lib://QVDs/A/CS.QVD](qvd)

Where YEAR >= Year(AddYears(YearStart(Today()),-1));

 

bryan_21
Contributor III
Contributor III
Author

Thank you for the prompt response guys.