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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display Matched String Values Only


Hi,

In my Table i have a field with String value in that some are started with Like ABCD.

i need only which Starts with ABCD Only.

now i want to filter the data while load in to the Qlikview.

Means

Cloumn1

ABCD_XYZ

ABCD_MNO

ABCD_EFG
ABCD_LMN
ABCD_PQR

I NEED ONLY LIKE THIS IN MY DATA HOW CAN I DO THIS. PLEASE HELP ME

1 Solution

Accepted Solutions
robert_mika
Master III
Master III

LOAD if(left(Code,4)='ABCD',Code)

FROM

[151434.xlsx]

(ooxml, embedded labels, table is Sheet1);

View solution in original post

6 Replies
tresesco
MVP
MVP

Load

          YourStringField

From <> Where WildMatch(YourStringField, 'ABCD*');

rubenmarin

Hi, while loading in QV you can filter that data adding a where clause:

LOAD ....

FROM ...

Where Left(FieldName, 4)='ABCD';

or if it's SQL:

LOAD...;

SELECT...

WHERE FieldName='ABCD%'

or:

LOAD...;

SELECT...

WHERE Left(FieldName, 4)='ABCD'

robert_mika
Master III
Master III

LOAD if(left(Code,4)='ABCD',Code)

FROM

[151434.xlsx]

(ooxml, embedded labels, table is Sheet1);

Not applicable
Author

Thank You Robert,

It is working.


robert_mika
Master III
Master III

Your are welcome

Michiel_QV_Fan
Specialist
Specialist

Load_limiter:

LOAD * INLINE [

    load_limiter

    ABCD

];

table:

load *,

  left(field1, 4) as limit;

LOAD * INLINE [

    field1, field2

    ABCD_123, 1

    ABCD_456, 2

    ACDB_123, 3

];

table2:

NoConcatenate

Load

  *

Resident table

where Exists (load_limiter,limit);

drop table table;

drop table Load_limiter;