Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
How can I declare an integer variable in my script Qlikview and use this variable in a text object.
Thanks.
SET X= 45;
OR
LET X= 5*2; (this one will evaluate > 5*2=10)
Cheers
Now, how to use this variable in a TEXT OBJECT.
=myvariable
or
=$(myvariable)
Hi,
look at the example file.
I created a integer variable and a string variable.
The string ist then presented in a text box!
Cheers
Martin
In your script create your variable, something like this:
Let vText = 'Hello World';
In your Text Object create an expression to evaluate your variable:
=vText
Your Text Object should show "Hello World"
I have done like this in my script:
LET nbMois = round((Date(DateFinExercice, $(DateFormat) )-Date(DateDebutExercice, $(DateFormat) ))/30);
and in the TEXT object, i have done
= nbMois and = $(nbMois) it did not work
Please Martin, write your script in the message. My Qlikview version can't open your file.
I use Qlikview Personal Edition
Oscar escuse me, i told of INTEGER Variable not Text Variable.
Works the same way with integer:
Let vInteger = 45;
In your Text Object create an expression to evaluate your variable:
=vInteger
Your Text Object should show "45"