Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Pierre_G
Contributor III
Contributor III

How to create a global variable in Qlik Compose

How to I create a global variable in Qlik Compose that can be assigned values based on Environment Dev,Test,Prod?

This variable is to be used in Expressions or Filters such as:

iif(${Lookup.RegardingObjectId} = ENV_VARIABLE, 1, 0)

 

 

Labels (1)
1 Solution

Accepted Solutions
Nanda_Ravindra
Support
Support

Hello @Pierre_G What version of Qlik compose are you running? We added the custom variable in Compose in one of our later versions, 2021.08 - sp03( 2021.08.0.250). So, for any version on this and higher, you should be able to use custom variables. But to create it, you have to use the CLI.

 

Please check the below link on how to use it. For your use case see the user defined variable section.

 

https://help.qlik.com/en-US/compose/May2022/Content/ComposeDWDL/Main/DW/Projects/Variables_templates...

 

Thanks,

Nanda

 

View solution in original post

1 Reply
Nanda_Ravindra
Support
Support

Hello @Pierre_G What version of Qlik compose are you running? We added the custom variable in Compose in one of our later versions, 2021.08 - sp03( 2021.08.0.250). So, for any version on this and higher, you should be able to use custom variables. But to create it, you have to use the CLI.

 

Please check the below link on how to use it. For your use case see the user defined variable section.

 

https://help.qlik.com/en-US/compose/May2022/Content/ComposeDWDL/Main/DW/Projects/Variables_templates...

 

Thanks,

Nanda