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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Creating an average variable in the Load Script

Hi Qlik Community!

Here's my issue: I want to create a variable (vExchangeRate) that takes the average of the EUR:USD exchange rates of the last 30 days.

I have a Forex Table in my data model like this:

Captura de pantalla 2015-10-28 a las 1.45.49 PM.png

Then I want to use this variable in a chart to calculate some fees. How could I do this in the Load Script? Is there a better way? I've though of Set analysis but would like to do it in the Load Script.

Thanks!

0 Replies