Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
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
chauhans85
Esteemed Contributor

How to evaluate a table value inside the load script?

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

1 Reply
chauhans85
Esteemed Contributor

How to evaluate a table value inside the load script?

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

Community Browser