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: 
karan_kn
Creator II
Creator II

Exclude ID's with a specific value in Load Statement

Exclude ID's with a specific value (A)in Load Statement

LOAD * INLINE [
ID, Rank, Sub
1, A, 23434
1, B, 4546
1, C, 5675
2, B, 34234
2, C, 546456
3, A, 78686
3, B, 3523523
3, C, 68685
3, D, 35354
4, B, 57568
5, B, 3242
5, C, 7878
5, D, 35325
6, A, 56756
6, B, 87979
7, B, 789703
7, C, 354367
7, D, 7979
7, E, 46546
];

Capture.JPG

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this, 

Data:
LOAD * INLINE [
ID, Rank, Sub
1, A, 23434
1, B, 4546
1, C, 5675
2, B, 34234
2, C, 546456
3, A, 78686
3, B, 3523523
3, C, 68685
3, D, 35354
4, B, 57568
5, B, 3242
5, C, 7878
5, D, 35325
6, A, 56756
6, B, 87979
7, B, 789703
7, C, 354367
7, D, 7979
7, E, 46546
];

Filter:
Load ID as ID_to_Filter
Resident Data where Rank ='A';

Output:
NoConcatenate
Load * Resident Data where not Exists(ID_to_Filter,ID);

Drop table Data,Filter;

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

1 Reply
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this, 

Data:
LOAD * INLINE [
ID, Rank, Sub
1, A, 23434
1, B, 4546
1, C, 5675
2, B, 34234
2, C, 546456
3, A, 78686
3, B, 3523523
3, C, 68685
3, D, 35354
4, B, 57568
5, B, 3242
5, C, 7878
5, D, 35325
6, A, 56756
6, B, 87979
7, B, 789703
7, C, 354367
7, D, 7979
7, E, 46546
];

Filter:
Load ID as ID_to_Filter
Resident Data where Rank ='A';

Output:
NoConcatenate
Load * Resident Data where not Exists(ID_to_Filter,ID);

Drop table Data,Filter;

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!