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

Can Iterations be done for Wildmatch funciton?

Hello all,

I have the following problem in my script. I have two tables

Table 1:

Key Name
100‘PjtXYZ #NLPOAC, Tra #NLPSHX'

Table 2:

KeyPartner
100HP
100SAP
100Microsoft

Now my second table (partner) should look like the below

KeyPartnerNLPJSO
100HP#NLPOACHP Kit
100SAP#NLPSHXSAP Run
100Microsoft

In table 1, under 'Name' field, I have 2 '#NLP strings'. I want to identify both strings one after another.

Is there any iterative function available in qlikview for wildmatch functions so that strings are searched one after another.

Each string should have one partner.

Kindly help me on this.

Thanks in advance,

Vidhya

1 Solution

Accepted Solutions
tresesco
MVP
MVP

May be like attached qvw?

View solution in original post

15 Replies
tresesco
MVP
MVP

There would be some work around. Could you explain - how you associate #NPLOAC with HP and #NLPSHX with SAP? Is it the order?

Not applicable
Author

Thanks for your quick repli!!

There is no specific order. In table 2, first partner is 'HP'. So the first '#NL' string should be tagged to HP.

At the end I should have #NL string for all the partners available.

We have 3 Keys with different Partners.

So, each Partner should get #NL string.

Hope this helps.


tresesco
MVP
MVP

May be like attached qvw?

Not applicable
Author

thanks, this is what I wanted.

i tried to do the same in the attached qvw file, I dont get  the exact result.

Could you please advise where I have gone wrong?

Thanks in advance

Vidhya

tresesco
MVP
MVP

Change the SubField separator from comma to semi-colon ':' and try like:

SubField(Name, ':') as Name

Not applicable
Author


Hi Deepak,

Sample application is attached here.

Kindly help me on this.

Thanks,

Vidhya

Not applicable
Author

Hello Tresesco,

I still get the same.

Kindly have a look at the attached screenshot.

Thanks,

Vidhya

Not applicable
Author

Is there any While statement wherein we can use IterNo() to achieve the result.

Like

Load
Key,

if(<There is an IterNo() occurrence of *#NL?B* in the Name>,

<Distill this IterNo()’s occurrence from the Opty Name>) as NLPB
Resident Table1;

While <there are more occurrences of *#NL?B* in the Name>;

Thanks,

Vidhya


tresesco
MVP
MVP

Try to share your sample data excel.