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

quickest load method

I'm trying to load a qlikview document, in the script I have commands like the following:-

if([PD PH Status] = '10','Released to Warehouse',

         if([PD PH Status] >= '20' and [PD PH Status] <= '40', 'In Picking/Packing',

            if([PD PH Status] = '70','Loaded on Trailer'))) as [PD Status];

I have attached the script as in many places I need to quicken the load but I'm not sure how to.

Would be grateful for the help.

Labels (1)
4 Replies
Not applicable

Refresh time depend on the lot of factor. You can try with mapping load or interval match. Test the reload time for 3 cases and you can use which method take less time.

swuehl
Champion III
Champion III

You can look into a MAPPING approach, like you already did in other places of your script.

qlikmpate0
Creator II
Creator II
Author

How can I use mapping when there are <= and >= parameters?

swuehl
Champion III
Champion III

If status is an integer, you can create a mapping table like

MAP:

MAPPING

LOAD Min+iterno()-1 as F1, Map

while Min+iterno()-1 <= Max;

LOAD Min, Max, Map INLINE [

Min,Max, Map

10,10,Released to Warehouse

20,40,In Picking/Packing

70,70,Loaded on Trailer

];

LOAD

     Status,

     ApplyMap('MAP', Status,'No StatusText mapped') as StatusText,

     ...