Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

copy variable calculation to another variable

Hi all,

I need to copy an variable calculation result to another variable or qvd that I will use in order to compare between the two versions.

Lets say i have the vTest=count(volume)

The calculation of this variable in the interface gives me 10.

Is there any way to copy this result to another variable vTest2??

I have managed to do that with triggers but it does not work on the server side

4 Replies
MK_QSL
MVP
MVP

Please check enclosed file...

Not applicable
Author

Hi,

Just simply assign the variable name to new variable.

eg :

let var1=(some calculation);

let var2 = var1;

Not applicable
Author

In your particular example I would want to get the sum(sales) value which is 500 to another variable but this has to be done without using the variable itself.

I want do do that because every time I reload I want to compare the old variable value with the new one.

Not applicable
Author

But wont this override the new value ?? I want something like versioning kind of.