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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Changing the value of a variable in an if statement (simple question)



If

I am trying to change the value of the second variable based on the value of the first but it is not working,

I would appreciate some help

($(vInvoiceEvCheck) = 0,vFcst_Invoices= 0)



1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

Try throwing it around and assign the if statement to the variable:

Let vInvoiceEvCheck=0;

Let vFcst_Invoices=if($(vInvoiceEvCheck) = 0,0);

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi,

Try throwing it around and assign the if statement to the variable:

Let vInvoiceEvCheck=0;

Let vFcst_Invoices=if($(vInvoiceEvCheck) = 0,0);