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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load script table manipulation?!?


hoping someone can help...if this is even possible?!?

I have the following table...

numberYCH GBWM GBRN GLWH GKNI GLNI GMAC GMCI GVWM G
10602906-2ynnnnnnnn
10605441nynnnnnnn
20118159nnnnnnnyy
20743581nyynnnnn

n

and what I want to do is create a secondary table as a lookup for my main table above.. i.e when I select number 20118159 I want to be able to select from a list any site code where there is a 'y' in the column... can I create a create a table like this...

numbersite_code
10602906-2YCH G
10605441BWM G
20118159MCI G
20118159VWM G
20743581BWM G
20743581BRN G

so that I can have a list box of sites and my main table will reurn the related numbers?!?

Does that make any sense?

23 Replies
Not applicable
Author

still cant get site codes to pick up 'not entered' never found anything so annoying!!!!

qlikconsultant
Creator III
Creator III

Try this:

if(attribute is null, 'null', attribute)

qlikconsultant
Creator III
Creator III

but treeseco way is better

Not applicable
Author

thanks tresesco so much for your help so far but I still cant get it to work

the table I used first time had null values (which I ignored) I have used a different part of the script to replace nulls with 'not entered' (by using if isnull in load statement) so my main table looks like..

numberYCH GBWM GBRN GLWH GKNI GLNI GMAC GMCI GVWM G
10602906-2ynnnnnnnn
10605441not enterednot enterednot enterednot enterednot enterednot enterednot enterednot enterednot entered
20118159nnnnnnnyy
20743581nyynnnnn

n

I want a secondary table secondary table as a lookup for my main table above.. i.e when I select number 20118159 I want to be able to select from a list any site code where there is a 'y' or 'not entered' in the column... like this...

numbersite_code
10602906-2YCH
  G
10605441YCH G
10605441BWM G
10605441BRN G
10605441LWH G
10605441KNI G
10605441LNI G
10605441MAC G
10605441MCI G
10605441VWM G
20118159MCI
  G
20118159VWM
  G
20743581BWM
  G
20743581BRN
  G

can I modify the script (that you suggested before) to do this? sorry for being so dull

CroTables:

Crosstable (site_code, Flag,1)

Load

          *

from <>;

NoConcatenate

Final:

Load

          *

Resident CroTable Where Flag='y';

Drop table CroTable;