Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Not applicable

How to enter a variables in qliksense?

Hey everyone,

i know i have to use the debugger option, but i don't know how to continue....

1 Solution

Accepted Solutions
undergrinder
Valued Contributor II

Re: How to enter a variables in qliksense?

Hi Jhonatan,

I suggest you the Script Syntax and Chart Functions Guide.

When defining a variable, the syntax:

set variablename = string

or

let variable = expression is used.

The Set command assigns the text to the right of the equal sign to the variable, whereas the Let command evaluates the expression. Variables are case sensitive.

To debug a variable you should click on debug mode (data load editor - upper right corner), and you can run the script almost line-by line, and watch the values of variables.

G.

4 Replies
korsikov
Valued Contributor II

Re: How to enter a variables in qliksense?

if you wants see you Variables value, try use Trace $(vMyvariable);

Not applicable

Re: How to enter a variables in qliksense?

i meant if i want to set them , do i just do SET=V....?

undergrinder
Valued Contributor II

Re: How to enter a variables in qliksense?

Hi Jhonatan,

I suggest you the Script Syntax and Chart Functions Guide.

When defining a variable, the syntax:

set variablename = string

or

let variable = expression is used.

The Set command assigns the text to the right of the equal sign to the variable, whereas the Let command evaluates the expression. Variables are case sensitive.

To debug a variable you should click on debug mode (data load editor - upper right corner), and you can run the script almost line-by line, and watch the values of variables.

G.

reddys310
Honored Contributor II

Re: How to enter a variables in qliksense?

Hi Jhonatan,

Just declaring a variable using this: let varWeek = (week(Today()) - 1); -> is evaluated

                                                 or set varName = 'My Name is xyz'; -> considered as a string