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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to Store Max Value in Load Script

Hello,

It's possible to use some function in Load command in the script to store the Max Value until find a higher value than the existing to create a table in a QlikView object?

Example:

IDValueMax Value
11010
2810
3910
41111
5711
6911

Kind Regards.

4 Replies
sunny_talwar

You can use a combination of Peek/Previous with RangeMax to do this.

Script:

Table:

LOAD ID,

     Value,

     RangeMax(Peek('Max Value'), Value) as [Max Value]

FROM

[https://community.qlik.com/thread/206511]

(html, codepage is 1252, embedded labels, table is @1);

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Hi, Can you tell what exactly output you want for above data ?

-Nagarjun

Anonymous
Not applicable
Author

When i using the function with a table that uses Qualify *; the function is not displayed correctly, can you tell me why this behavior happen?

sunny_talwar

I will have to look at the script to give you an answer.