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

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

reuse column in preceding load

Hello,


Load
zone as zone1,
Year,
(Year & '-' & zone1) as PriKey
SQL Select ............


Whenever i reload, it prompts me that zone1 doesnt not exist.
Any solution?

3 Replies
Not applicable
Author

hi nick,

try the following in your script

Load *, Year & '-' & zone1 as PriKey;

Load


zone as zone1,
Year

SQL Select ............ <div></div><div>thanks</div>


Not applicable
Author

erm... i'm afraid i can't.

I actualy did some data manipulation by if statement for zone1, so i can't use *

But thanks for the suggestion.

Miguel_Angel_Baeyens

Hello Nick,

Indeed the field doesn't exists (yet). Youi are renaming the field so the field would be actually renamed once the table has been loaded. Thus, your code might look like

Load zone as zone1, Year, (Year & '-' & zone) as PriKey)
Note I'm referring to the field as it is coming from the sql sentence.

Regards.