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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to convert expression into load script ?

Hi All

My Table 1 Expression working fine :-

RangeSum(

Above(RangeSum(Above(Sum({<year, month, GL_CODE = {50010}>}[Amount]*1), 0, RowNo()))),

-Sum({<GL_CODE = {50010}>}TOTAL Aggr(Sum({<year, month, GL_CODE = {50010}>}[Amount]*1), YearMonth)))

Now i like to convert this into load script :-

RangeSum(

Above(RangeSum(Above(Sum({<year, month, GL_CODE = {50010}>}[Amount]*1), 0, RowNo()))),

-Sum({<GL_CODE = {50010}>}TOTAL Aggr(Sum({<year, month, GL_CODE = {50010}>}[Amount]*1), YearMonth))) as STK

I get error msg :-

Error in expression:

ABOVE is not a valid function

left keep (GL_TABLE)

Paul

1 Solution

Accepted Solutions
sunny_talwar

It would be difficult to suggest a way to convert the expression into script without having the ability to reload. It is a complex expression and would require a lot of trial and error. Why do you want to take the calculation into the script?

View solution in original post

5 Replies
paulyeo11
Master
Master
Author

my qvw

zhadrakas
Specialist II
Specialist II

Hi Paul,

i can't open your qvw cause of Personal Edition.

In Load Script you can't use above(), Aggr() and Set Analysis.

you need to Aggregate the data in script like

SELECT *

FROM XX

WHERE  GL_CODE = 50010

GROUP BY YEAR, MONTH

sunny_talwar

It would be difficult to suggest a way to convert the expression into script without having the ability to reload. It is a complex expression and would require a lot of trial and error. Why do you want to take the calculation into the script?

paulyeo11
Master
Master
Author

Hi Sunny

i will make use of expression you given me to cmopute the table and chart.

Paul

paulyeo11
Master
Master
Author

Hi Tim

Do you install QLIK sense ? If yes I can send you QVF .

Paul

Sent from my iPhone