Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Rocker
Contributor
Contributor

Requaried Mapping in bucket using wild search of qlikview

Hi all,

Needed one help from you.

We hae one Mapping Table like:

Mapping Table:

Bucket        Rules

Fruites       *Mango*,*Apple*,*Banana*,*Orange*

Vagitable   *Onoin*,*Carrot*,*Potato*

 

Table1:

Values

I eat Mango in summer seasion.

We hae cook Carrot soup today.

 

Expected Resultant table should be:

Result Table:

Value                                                               Bucket

I eat Mango in summer seasion.          Fruites

We hae cook Carrot soup today.         Vagitable   

This Bucket mapping is required to be change in dynamic basis. There aare lots of bucktes are there i hae puted only tow for sample.

 

Labels (1)
1 Solution

Accepted Solutions
Brett_Bleess
Former Employee
Former Employee

Rocker, did Kush's suggestion work for you?  If so, do not forget to return to your thread and use the Accept as Solution button on Kush's post to give him credit for the assistance with things.  If you are still working upon things, please leave an update post.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.

View solution in original post

2 Replies
Kushal_Chawda

Map:
mapping Load 
lower(trim(subfield(PurgeChar(Rules,'*'),','))) as RuleValues,
'<'&Bucket&'>' as Bucket
Inline [
Bucket,Rules
Fruites,"*Mango*,*Apple*,*Banana*,*Orange*"
Vagitable,"*Onoin*,*Carrot*,*Potato*" ];

Values:
Load *, 
TextBetween(MapSubString('Map', lower(trim(Value))),'<','>') as Bucket 
Inline [
Value
I eat Mango in summer seasion.
We hae cook Carrot soup today. ];
Brett_Bleess
Former Employee
Former Employee

Rocker, did Kush's suggestion work for you?  If so, do not forget to return to your thread and use the Accept as Solution button on Kush's post to give him credit for the assistance with things.  If you are still working upon things, please leave an update post.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.