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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
QlikAngel
Partner - Creator
Partner - Creator

Not Exists()

Hi,

I am facing issue while using where not exists function.. its not giving an optimized load.

INLINE:

LOAD * INLINE

[

ID

4271

3838

];

Dealers:

LOAD ID as DealerId,

     ID as DealerIdSurveyor,

     ID as DealerId_AXA,

     Organization as Dealer,

     //AreaId,

     //CityId ,

     StateId ,

     TC_DealerTypeId

FROM

$(vpath)\Dealers.qvd

(qvd) where not Exists (ID);

13 Replies
Not applicable

Also, Deriving teh same field more than once causes not optimized.

QlikAngel
Partner - Creator
Partner - Creator
Author

Hi Gysbert,

Its worked as Optimized.. thanks a ton.

stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm surprised that renaming the one field to four different names doesn't break Optimized load - that must have been a change at some point (I'm going to have to test again!).

Another option is to do the WHERE EXISTS with the name as it appears in the QVD and then use RENAME FIELD after the event.

Steve

mena_ricardo
Partner - Contributor II
Partner - Contributor II

Hi, 

 

I think I do the same, but it doesn´t work:

 

REG:

LOAD
n_contr,
n_contr as n_contr_num
FROM op.QVD (qvd)
where suc=1500 or suc=5505;


AVAL_NO_REG:

LOAD
n_contr as n_contr,
Code,
suc
FROM 1500.QVD (qvd)
Where not Exists(n_contr_num);


drop table REG;

store AVAL_NO_REG into xxxxxxxxxx;
drop table AVAL_NO_REG;

 

 

Can you help me, please?

 

Thanks