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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
sculptorlv
Creator III
Creator III

LOAD syntax

Please help me with the syntax .. I have strange (for me) situation.

I have to TABs in Qlikview Edit script.

First TAB:

     DATA_BONUSS_KOEF:

     LOAD


      600 AS Agent_Salary_Constant_Part

     ;



Second TAB:

     DATA_LOAD_AGENTS_BUDGET:

     SQL SELECT

      TABLE_AGENT_AND_BUDGET.Amount AS Budget_Money

    

     FROM "XXX$XXX Item Budget" AS TABLE_AGENT_AND_BUDGET

;


As the result I got NOTHING. If I will remove the first TAB, then the second TAB will give me Budget_Money values.



What do I do wrong?


5 Replies
jwjackso
Specialist III
Specialist III

Try autogenerate

First TAB:

     DATA_BONUSS_KOEF:

     LOAD


      600 AS Agent_Salary_Constant_Part

   AutoGenerate(1)  ;

hic
Former Employee
Former Employee

What do you want the first Load statement to do? If you just want it to be a constant that you can use everywhere, then you should store it as a variable, and not as a table:

Set Agent_Salary_Constant_Part = 600;

sculptorlv
Creator III
Creator III
Author

I wan in the very begging put all the variables (you ar correct),

but later I want to use these variables (within the edit scrip section with LOAD) to make changes in tables data with LOAD

hic
Former Employee
Former Employee

Still, if there is only one value of Agent_Salary_Constant_Part then it should be a variable. You can then use the variable in the Load statement like

Load

     x,

     x / $(Agent_Salary_Constant_Part) as Ratio

     From <File> ;

sculptorlv
Creator III
Creator III
Author

Ok. thank you very much!

I guess this will solve my problem!