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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
aerfurt85
Contributor
Contributor

Evaluate formula in script or application

Is it possible to evaluate a formula/function in a script or application?

For example:

Script

Tab1:

LOAD * INLINE [

    ReceiptDate, Formula

    "10.06.15", "AddMonth(ReceiptDate,1)"

    "12.06.15", "AddMonth(MonthStart(ReceiptDate),1)"

    "07.07.15", "date(ReceiptDate+ 15)"

];

Tab2:

LOAD ReceiptDate,

  Evaluate(Formula) as DueDate

Resident Tab1;

--------------------------------------------------------------------------------------------

Application

vDueDate (Variable):

TEST1: $(=Formula)

TEST2: $(Formula)

TEST3: $('$(=Formula)')

The Result is NULL or error.

---------------------------------------------------------------------------------------------

Any other ideas?

Thanks!

Labels (1)
1 Reply
swuehl
Champion III
Champion III

Try one of the approaches discussed here:

Inside field calculation?