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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
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 II
Partner - Master II

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 II
Partner - Master II

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.