Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Evaluate a stored formula in script

Hello,

I've 2 tables that are stored in QVD's

  • definition table: the id's, for what I must calculate the formula written in the field "formula"
  • values tables: the values needed to calculate the formula

I would like to create a script and get the calculations with help of the values tables directly in script. That means that I must find a way to evaluate the Formula. Does anybody have an idea on how to do that ? Do I think in the false direction ?

Unbenannt.PNG

As a result, I simply would like that:

  • DepID_1008 --> 40 - 66 = -26
  • DepID_1009 --> 40 - 66 + 55 = 29

Thanks,

Ivan

1 Solution

Accepted Solutions
Not applicable
Author

Okay,

I've found, I can do that in script with the evaluate() function.

Regards,

Ivan

View solution in original post

2 Replies
Jason_Michaelides
Partner - Master II
Partner - Master II

FI4030 - FI4027 = -26, not 5 so how do you get your desired results?

Not applicable
Author

Okay,

I've found, I can do that in script with the evaluate() function.

Regards,

Ivan