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: 
george55
Partner - Creator III
Partner - Creator III

Difference Variable: Load-Editor vs. App

Hi all,

What is the difference between creating a variable in Load Editor (set / let) and in the App itself (see picture below)?

2019.1220-143854.jpg

Are there any disadvantages/advantages using one or the other?

One advanced  in the Load Editor I see, but please correct me if I am wrong, is to generate a 'order'. Hence able to control the dependencies of the variables.

Thanks for any help.

George

1 Solution

Accepted Solutions
Lauri
Specialist
Specialist

Hi George,

The advantages to creating them in the load editor:

  • You can store your variables in a text file, and then use an Include to bring them into the load editor. This is the preferred method for global variables across multiple apps.
  • You can, as you said, choose Let vs. Set.
  • It's quicker to update many variables in the load editor.

The only advantage I can think of to creating a variable in the App:

  • You don't have to wait for the reload

Note that a variable created in the load editor, and then removed from the load editor after a load, will remain in the variables list in the app.

Read these for more guidance:

https://qlikviewcookbook.com/2018/01/let-set-quotes/

https://community.qlik.com/t5/Qlik-Design-Blog/Escape-sequences/ba-p/1469770

 

View solution in original post

2 Replies
Lauri
Specialist
Specialist

Hi George,

The advantages to creating them in the load editor:

  • You can store your variables in a text file, and then use an Include to bring them into the load editor. This is the preferred method for global variables across multiple apps.
  • You can, as you said, choose Let vs. Set.
  • It's quicker to update many variables in the load editor.

The only advantage I can think of to creating a variable in the App:

  • You don't have to wait for the reload

Note that a variable created in the load editor, and then removed from the load editor after a load, will remain in the variables list in the app.

Read these for more guidance:

https://qlikviewcookbook.com/2018/01/let-set-quotes/

https://community.qlik.com/t5/Qlik-Design-Blog/Escape-sequences/ba-p/1469770

 

george55
Partner - Creator III
Partner - Creator III
Author

Thanks Laurischarf

So I will use going forward variable only in the load editor. advantages outweigh the disadvantages.

And as I said, a further advantage in load editor, is to be able to put the variables in an order:
let x = 1+3
let y = x +1