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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
poluvidyasagar
Creator II
Creator II

Pick and Match?

Hello,

I have the following situation.

Here is my data:

  

PNLocation
123452C123
345672C444
123452C345
123452D567
123452F879

So in a pivot chart, i would like to get the following:

 

PNSetup
123452c setup
345672c setup

I tried to use the following script but it does not work. I understand the reason behind but i would like a better logic.

= pick( Match(left(Location,2),'2c'), '2c Setup')

Can someone improvise this logic to get me what i want as the result.

Rightnow, i only get the following as my result.

 

PNSetup
345672c setup

Thanks,

Vidya

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this

=Pick(WildMatch(Concat(DISTINCT '|' & Location), '*|2C*'), '2C Setup')

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Try this

=Pick(WildMatch(Concat(DISTINCT '|' & Location), '*|2C*'), '2C Setup')

poluvidyasagar
Creator II
Creator II
Author

Awesome..  It worked.

Thanks Sunny