Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

jim_chan
Contributor III

Qlik sense scripting syntax error

Hi there,

i am converting a chart from qlikview to qlik sense  - but the below code, doesnt seem to work in Qlik Sense, but is 100% work in qlikview. what are the syntax error you think?

= IF(DR_DTLS_MONTHNAME = 'Jan','Month Actual  $(vPriorMonth) $(vPriorYear)','Month Actual  $(vPriorMonth) $(vMaxYear)')

Rgds,

Jim

5 Replies
MVP
MVP

Re: Qlik sense scripting syntax error

Do you already have the variables created in Qlik Sense? -> $(vPriorMonth) $(vPriorYear) and $(vPriorMonth) $(vMaxYear)

jim_chan
Contributor III

Re: Qlik sense scripting syntax error

yes created. i wanted to put this expression in label.

MVP
MVP

Re: Qlik sense scripting syntax error

Your syntax is OK, so the problem must be to do with the variables.

jim_chan
Contributor III

Re: Qlik sense scripting syntax error

ok. let me check again

ogster1974
Honored Contributor II

Re: Qlik sense scripting syntax error

try displaying the variables as a measure in a KPI visualisation object to see what's happening.  It helped me when debugging variable content.

Community Browser