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

reduce items

Hi

I have inventory file , includes pn and qty

as well as list of pn to exclude fro the invery

what is the best way to do it

enclosed a file with data

sheet - data , with  original data .

sheet - exclude - pn to be removed fro the original data

sheet - after -  required data ( after the remove )

thanks

gidon

20 Replies
gidon500
Creator II
Creator II
Author

hi

thanks , it works

gidon

its_anandrjs
Champion III
Champion III

Check below  script david in this you have to maintain only excel by use this you can exclude 100 to 1000 of pn field keys.

ExcludeTable:

LOAD pn as ExcludeKey;

LOAD pn

FROM

(ooxml, embedded labels, table is exclude);

LOAD pn,

     qty

FROM

(ooxml, embedded labels, table is data) Where not Exists(ExcludeKey,pn);


Drop table ExcludeTable;

anbu1984
Master III
Master III

Can you mark helpful\correct answer

gidon500
Creator II
Creator II
Author

hi

Thanks tried it it works perfect ,

since you are here  , can you tell me

how to remove a field  from a table

in order to reduce tha size of the module

thanks

gidon

anbu1984
Master III
Master III

Remove the field which you dont need from load statement

its_anandrjs
Champion III
Champion III

After the load statement like

Load Name,Address,Salary,LastName

From Location;

DROP Field LastName; //if you want to remove the LastName from table

//Or

DROP Fields LastName,Name; //if you want to remove the LastName,Namefrom table

gidon500
Creator II
Creator II
Author

yes , please

how do i do it ?

gidon500
Creator II
Creator II
Author

thank you very  much .

its_anandrjs
Champion III
Champion III

If you got correct answer from the thread so mark the thread as appropriate answer correct / helpful for references or for another question post new thread.

Regards

anbu1984
Master III
Master III

LOAD pn,

     qty

FROM

[Reduce items.xlsx]

(ooxml, embedded labels);

If you dont want column qty remove it from your load statement

LOAD pn

FROM

[Reduce items.xlsx]

(ooxml, embedded labels);

If you want to remove after loading, then use Drop

Drop field qty;