Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Qlik Certification Exam Sale - 40% off. Register by June 30, 2020. GET DETAILS

Urgent Help Required to write a script function


I need help in writing a script function in load script.

I want to convert an expression : if(Continent=$(vPlantContinent), sum({<ObjectID={CHART1,CHART2,CHART3},Dept={Dept1}>}Actual))  into a script function.

in script editor, ABC Tab you will find sample function created. 

For function vFHS_Table1_Actual I wanted to implement above mentioned formula.

Please find attached file for reference.


1 Reply
Contributor III

Re: Urgent Help Required to write a script function

Please let us know whether fields involved in the same table or not.

To brg this formula in script function


try to use resident load the tabel with 



from xx

where Continent=$(vPlantContinent) and ObjectID=CHART1 and ObjectID= CHART2 and ObjectID=CHART3 and Dept=Dept1