Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

vigneshvenugopa
New Contributor

How to create config file in Qlik Sense to store global variables

Hi,

I want to create config file in Qlik Sense to store global variables, so that the it can be accessed while creating each and every dashboard/report. For example I wanted to create a variable which stores a physical folder location. And the same variable can be used in each QVS to access a particular file in the location.

Thanks for your help !!

-Vignesh

1 Solution

Accepted Solutions
rittermd
Honored Contributor

Re: How to create config file in Qlik Sense to store global variables

Not sure if this is what you mean.

We have created a .qvs file and stored on our server.  This file contains all of the LET and SET statements to create the variables that we use across most apps.  Things like Current Year, 30 days, 90 days ago date. 

We then just use an include statement in our script and they all get loaded in the app.  The downside is that they get loaded even if you don't use them. 

SET QvcLib='lib://Includes';

$(Include=$(QvcLib)\Includes\FolderPathsNew.qvs);

$(Include=$(QvcLib)\Includes\Default_Variables.qvs);

3 Replies
agigliotti
Honored Contributor II

Re: How to create config file in Qlik Sense to store global variables

i suggest you to take a look a https://github.com/QlikDeploymentFramework/Qlik-Deployment-Framework

there you 'll find some PDF files that helps you understand how it works.

beck110979
Valued Contributor III

Re: How to create config file in Qlik Sense to store global variables

Hi Vignesh,

look at this blog, maybe you can solve your issue in other way

http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/

i hope that helps

Beck

rittermd
Honored Contributor

Re: How to create config file in Qlik Sense to store global variables

Not sure if this is what you mean.

We have created a .qvs file and stored on our server.  This file contains all of the LET and SET statements to create the variables that we use across most apps.  Things like Current Year, 30 days, 90 days ago date. 

We then just use an include statement in our script and they all get loaded in the app.  The downside is that they get loaded even if you don't use them. 

SET QvcLib='lib://Includes';

$(Include=$(QvcLib)\Includes\FolderPathsNew.qvs);

$(Include=$(QvcLib)\Includes\Default_Variables.qvs);