Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to evaluate a table value inside the load script?

I have to load data from two different sources. The selection of the datafor the second source shall be limited by the min and max value of the firstload command. In real live the selection of the data of the second table willbe done by a date interval. In my example I try to evaluate the min and maxvalued of an integer field.

Peek works fine but Min and Max do always return <NULL>

TT:

LOAD * INLINE [

    Zahl

    8

    1

    2

    3

    4

    2

];

let iFirst=Peek('Zahl',0, 'TT');

let iLast=Peek('Zahl');

let iMin=Min(Zahl);

let imax=Max(Zahl);

1 Solution

Accepted Solutions
SunilChauhan
Champion
Champion

ues Below code

TT:

LOAD * INLINE [

    Zahl

    8

    1

    2

    3

    4

    2

];


let iFirst=Peek('Zahl',0, 'TT');

let iLast=Peek('Zahl');

load

Max(Zahl) as Max,

Min(Zahl) as min

resident TT;

hope this help

Sunil Chauhan

View solution in original post

1 Reply
SunilChauhan
Champion
Champion

ues Below code

TT:

LOAD * INLINE [

    Zahl

    8

    1

    2

    3

    4

    2

];


let iFirst=Peek('Zahl',0, 'TT');

let iLast=Peek('Zahl');

load

Max(Zahl) as Max,

Min(Zahl) as min

resident TT;

hope this help

Sunil Chauhan