Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

anindya_manna
Contributor II

How to store an entire expression in a Variable

I want to store the below expression inside the variable.Please help me how to do this.

vAppCondition=((Trim(Schedule)='Daily' or Trim(Schedule)=date(now(),'WWWW')) and $(vFlag_NewProcessDate)=1)or (Trim(Schedule)='Monthly' and $(vFlag_NewProcessMonth)=1)

I am using escape chr(39)to keep the single quote but not working correctly

Labels (2)
2 Replies
saifuddin
New Contributor II

Re: How to store an entire expression in a Variable

Under Setting --Variable overview create a variable and add the expression as definition. Then use it in your chart . 

qv_testing
Valued Contributor II

Re: How to store an entire expression in a Variable

Go to Setting--> Variable Overview (Ctrl_Alt+v)--> you can add here 

Capture.PNG