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: 
manju421
Contributor II
Contributor II

How to eliminate certain rows

Screenshot_20201109-140528__01.jpg

 I want to eliminate project which have status =. Terminated. If status = terminated in any of the version, I don't want to display that project.

In above example Project name (Test 1) has status Terminated, In this case, I want to eliminate all 3 rows for Test 1

Labels (1)
2 Replies
Taoufiq_Zarra

@manju421  in Script for example :

Data:

Load * inline [
Project name,version,Status
test 1,1,closed
test 1,2,closed
test 1,3,Terminated
test 2,1,closed
test 2,2,closed
];
left join load [Project name],'1' as Flag resident Data where  Status='Terminated';


output:
noconcatenate
load * resident Data where Flag<>'1';

drop table Data;
drop fields Flag;

 

output:

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Vegar
MVP
MVP

You could solve this with a solution using NOT Exsists()

ExcludedList:
LOAD [Project name] as ExcludedProjectName
FROM source
WHERE Status= 'Terminated';

Final:
LOAD [Project name], Version, Status
FROM Source
WHERE Not Exists(ExcludedProjectName , [Project name] );

Drop table ExcludedList;