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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Not Exists() not working

Hi,

Type_Of_FeedbackCall_No
Very Bad2216336
Bad2214482
Bad2210228
Bad2214978
Very Bad2200440
Very Bad2205258
Bad2206982
Very Bad2213305
Bad2207265
Bad2228671
Very Bad2207265
Very Bad2228671


Wrt above data, i need to load only unique records. Among duplicate records, i need to load record with "Very Bad" feedback type.

Pls suggest how to achieve this.

What i am doing is as below, but m not able to get anything.

tmp:
Load Call_No, Type_Of_Feedback
From <Above Data Source>
Order By Call_No ASC, Type_Of_Feedback DESC;

Feedback:
Load Call_No, Type_Of_Feedback,'' as jj
Resident tmp
Where Not Exists(Call_No);

Drop Table tmp;

3 Replies
Not applicable
Author

Hi Arun,

Try

Feedback:

LOAD Call_No , MaxString(Type_Of_Feedback) as TypeF

RESIDENT Tmp

GROUP BY Call_No;

Regards,

Joao



Not applicable
Author

Feedback:
LOAD
Type_Of_Feedback, Call_No
RESIDENT Tmp
Where Type_Of_Feedback = 'Very Bad'
Group BY Type_Of_Feedback, Call_No;

regards,

FC

johnw
Champion III
Champion III

And to explain why your current approach isn't getting anything, the tmp table contains ALL call numbers. so when you look for call numbers that don't exist, there aren't any. All call numbers already exist.