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: 
qlikconsultant
Creator III
Creator III

above works in chart but not in the load skript

Hi,

I use the following Code in a Chart table:

round(((

above(sum(MyNummber),10)

+above(sum(MyNummber),9)

+above(sum(MyNummber),8)

+above(sum(MyNummber),7)

+above(sum(MyNummber),6)

+above(sum(MyNummber),5)

+above(sum(MyNummber),4)

+above(sum(MyNummber),3)

+above(sum(MyNummber),2)

+above(sum(MyNummber),1)

)/10))

Works fine but I need the value to calculate other values.  So my idea was to calculate this number in the load skript:

round(((

above(sum(MyNummber),10)

+above(sum(MyNummber),9)

+above(sum(MyNummber),8)

+above(sum(MyNummber),7)

+above(sum(MyNummber),6)

+above(sum(MyNummber),5)

+above(sum(MyNummber),4)

+above(sum(MyNummber),3)

+above(sum(MyNummber),2)

+above(sum(MyNummber),1)

)/10)) as myaverage

Unfortunly the code is not working and I have no idea what is wrong.

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The above function works only in charts, as you noticed. In the script you can use the functions previous and peek to get date from earlier rows. Here's a discussion that looks like it might help you with your problem.


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The above function works only in charts, as you noticed. In the script you can use the functions previous and peek to get date from earlier rows. Here's a discussion that looks like it might help you with your problem.


talk is cheap, supply exceeds demand