Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
micheledenardi
Specialist II
Specialist II

Trace Variable value +1 ?

Hi Guys,

i would like to trace the value of a variable +1 without creating a new one with +1 added....

I've already tried these approach:

set x=4;

Trace $(x)+1;  ----> Result: "4+1"

Trace $(x+1); -----> Result: "empty"

I would like to see the result "5" in my script loading windows....

How to achieve this ?

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
1 Solution

Accepted Solutions
sunny_talwar

May be using another variable

SET x = 4;

LET y = $(x) + 1;

TRACE $(y);

View solution in original post

3 Replies
sunny_talwar

May be using another variable

SET x = 4;

LET y = $(x) + 1;

TRACE $(y);

micheledenardi
Specialist II
Specialist II
Author

is this the only way ?

As i wrote i wouldn't create a new variable...

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

I guess not, it seems that TRACE doesn't really allow you to perform a calculations... all the calculations have to be perform ahead of time.... the only thing it can do is to evaluate the value of a already created calculation using dollar sign expansion.