Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

syntax problem

Hi all,

I am trying to change an expression into the variable in load script . but The expression doesnt work when I try to change it to variable

Can some one please tell me what is wrong with this script?

LET vExecutionSummaryIntakeOrder = 'sum(if([NB_Execution_Summaries_Table.sort order]={10},[NB_Execution_Summaries_Table.Order intake today]))';

LET vExecutionSummaryShmtToday = 'sum(if([NB_Execution_Summaries_Table.sort order]={10},[NB_Execution_Summaries_Table.Shmt today]))';

1 Reply
tresesco
MVP
MVP

It looks okay. Only thing you have to be careful about is while using this variable, use with '$' symbol, i.e. call this variable like $(vExecutionSummaryIntakeOrder)

And yes, there is a catch, why are you using '{}' while comparing? Try without it like:

LET vExecutionSummaryIntakeOrder = 'sum(if([NB_Execution_Summaries_Table.sort order]=10,[NB_Execution_Summaries_Table.Order intake today]))';