Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
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

Tags (1)
4 Replies
MVP
MVP

Re: copy variable calculation to another variable

Please check enclosed file...

Not applicable

Re: copy variable calculation to another variable

Hi,

Just simply assign the variable name to new variable.

eg :

let var1=(some calculation);

let var2 = var1;

Not applicable

Re: copy variable calculation to another variable

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

Re: copy variable calculation to another variable

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

Community Browser