Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

Load Statement Help

I am trying to trim down my records to a specific group of names from one table. Here is what I have thus far...

OBSNAME_Sort:

Load * Inline [

NAME

LDL

A1c

BP Systolic

BP Diastolic

Diabetic Eye Exam

Smoking Status

DM Retinopathy

Smoking Cessation

DM Foot Exam

];

Flowsheet:

LOAD HDID,

    NAME;

SQL SELECT HDID,

    NAME

FROM xxx.xxx.FLOWSHEETLABELS;

DROP Table OBSNAME_Sort;

With this I can organize the record names with this statement but I need to condense the record names to this list alone otherwise I'm still getting hundreds of flowsheet names and values associated with those names.

How do I trim the table "NAME" down to give me only the records listed above and dismiss any other record? 

THANKS!

Tags (1)
1 Solution

Accepted Solutions
Not applicable

Re: Load Statement Help

That did the trick... Thanks!

3 Replies
phaneendra_kunc
Valued Contributor III

Re: Load Statement Help

use Where exists command..

OBSNAME_Sort:

Load * Inline [

NAME

LDL

A1c

BP Systolic

BP Diastolic

Diabetic Eye Exam

Smoking Status

DM Retinopathy

Smoking Cessation

DM Foot Exam

];

Flowsheet:

LOAD HDID,

    NAME where exists (NAME);

SQL SELECT HDID,

    NAME

FROM xxx.xxx.FLOWSHEETLABELS;

DROP Table OBSNAME_Sort;

Not applicable

Re: Load Statement Help

That did the trick... Thanks!

phaneendra_kunc
Valued Contributor III

Re: Load Statement Help

Can you mark this post as answered/helpful so that rest can find this thread useful. 

Community Browser