Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
martynlloyd
Partner - Creator III
Partner - Creator III

Select ANY / OR from list

I need to create a Chart/Table where the user can input a list of codes, and it will return rows where ANY of those codes appear in a string field

Example, data contains the field

Row1 P925945|P924974|P928690|P931245|P937145|P929622|P972233|P972583|P972583|P925777|P946333|

Row2 P952515|P921182|P954323|P925945|P924974|P928690|P931245|P937145|P929622|P972233|P972583|P972583|

Row3 P932986|P952515|P937145|P929622|P972233|P972583|P972583|P925777|P946333|

If user enters P925945, P924974 it will return Row1

If user enters P928690 it will return rows 1 & 2

If user enters P937145, P929622 it will return Rows 1, 2 & 3

Kind regards

MJ.

3 Replies
MK_QSL
MVP
MVP

Where these Rows are?

I mean in which objects?

Where you want user to enter values?

PrashantSangle

Hi,

Use search object..

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
effinty2112
Master
Master

Hi Martyn

Using this script

Data:

LOAD

Row,

Data

Where Len(Data) >0;

Load

Row,

SubField(DataLine,'|') as Data;

Load

RecNo() as Row,

DataLine;

LOAD * INLINE [

DataLine

P925945|P924974|P928690|P931245|P937145|P929622|P972233|P972583|P972583|P925777|P946333|

P952515|P921182|P954323|P925945|P924974|P928690|P931245|P937145|P929622|P972233|P972583|P972583|

P932986|P952515|P937145|P929622|P972233|P972583|P972583|P925777|P946333|

];

you can add a listbox on the field Data and a textbox with the expression Concat(DISTINCT Row,', ') will give the row numbers.

Cheers

Andrew