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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
its_anandrjs
Champion III
Champion III

Match data to load

Hi all,

I have query where i want to load matched data in the applicaion all i desribe in the application. Like i want to load a data for Aer, Cer, Vert like ways i have 200 around of data. I want to load only this three types of data now and i want to load that matched dataon the field Rets.

Aer

Cer

Vert

Please provide any help how to do that.

I put this on load of query after the load statement like Where Rets='Aer' and Rets='Cer' and Rets='Vert' but i have 300 of different records for Rets.

Anand

Labels (1)
1 Solution

Accepted Solutions
erichshiino
Partner - Master
Partner - Master

Sure

The exists is usually used for incremental reload. Sometimes we use it with millions of records.

Regards,

Erich

View solution in original post

6 Replies
klausskalts
Partner - Creator
Partner - Creator

Try this:

Directory;

LOAD [Rets],

     Mins

FROM

TestData.xlsx

(ooxml, embedded labels, table is Sheet1)

where [Rets] = 'Aer' or [Rets] = 'Cer' or [Rets] = 'Vert'

;

its_anandrjs
Champion III
Champion III
Author

Hi Klaus,

Thanks i do this thing but like  'Aer' or 'Cer' or 'Vert' i have 300 different types of values so in this case i have to type 300 different values like  [Rets] = 'Aer' or [Rets] = 'Cer' or [Rets] = 'Vert' in this code. Any other idea.

Regards,

Anand

its_anandrjs
Champion III
Champion III
Author

Hi Klaus,

Suppose in my application there are 2000 types of [Rets] are loaded but i want to load only 300 types of [Rets] and this 300 are provided in excel file in a column and i want to load this 300 only. If want more information then i provide to all.

Regards,

Anand

erichshiino
Partner - Master
Partner - Master

Hi, Anand.

You can use the exists() as a condition.

First, load all the Rets values that you want to use as a condition:

ValidRets:

load Rets

From ValidRets.xlsx (ooxml, embedded labels, table is Sheet1); //YOU NEED TO CREATE THIS FILE

//THEN CHANGE THE CONDITION IN THE FOLLOWING LOAD

LOAD [Rets],

     Mins

FROM

TestData.xlsx

(ooxml, embedded labels, table is Sheet1)

where exists (Rets);

Hope this helps,

Erich

its_anandrjs
Champion III
Champion III
Author

Hi Erich,

 

Thanks for suggestion now it is works i want to ask will it be work for n no of records like 1000, 10000, 100000 of records in excel file.

Regards,

Anand

erichshiino
Partner - Master
Partner - Master

Sure

The exists is usually used for incremental reload. Sometimes we use it with millions of records.

Regards,

Erich