Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create Filter using words of certain Field

Hi everyone,


I need to find a way to create a Filter that contains certain words of a determinate Field.

For example: I have this list box of the field "Model"

Imagen integrada 1

I want to create some filters that filter the data depending on the words:

  • One that contains "Bom" or Excelente"
  • One that contains the brands as "Blackberry", "Samsung",etc.
  • One that contains the models "iPhone 5, "Z30", etc.

I would be very grateful if someone help me.

Thanks in advance.

Martín

34 Replies
sergio0592
Specialist III
Specialist III

Or this :

=if(Fieldsname like '*iPhone 5*' or Fieldsname like "*Z30*" ,Fieldsname,null())

Not applicable
Author

Yes, are consistent. For example, all the models have attributed a condition, "Bom" or "Excelent".

There is any way to do the last picture? That list box filter with the condition.

Anonymous
Not applicable
Author

Not applicable
Author

Thanks Marcio, but no.

What I need to create is this (I made it with paint):

ScreenHunter_877 Oct. 18 16.13.jpg

Anonymous
Not applicable
Author

These conditions are fixed?

If so, you can create a InLine with the conditions, and make the search as the item sent.

[Conditions]:

LOAD * INLINE [

  Condition

  'Bom'

  'Excelent'

  ];

Not applicable
Author

Marcio,

Thanks to that I managed to create the Field "Conditions" and the Listbox but when I clicked in some condition is not working as a filter of the results, I clicked and nothing happens.

Anonymous
Not applicable
Author

Try this j j:

Not applicable
Author

Marcio,

Works great, thanks!

The only problem is:

In LOAD * Inline [

  Name 

Have I to list all the devices? Because I have more than 1500...

Anil_Babu_Samineni

Do You mean this??

Capture.PNG

Script

LOAD Field, SubField(Field, ' ', -1) as Field1;

LOAD * Inline [

Field

Blackberry 9900 Seminovo Bom

Blackberry 9900 Seminovo Excelente

Blackberry 9900 Seminovo Muito Bom

Blackberry Q10 Preto Seminovo Bom

Blackberry Q10 Preto Seminovo Excelente

Blackberry Q10 Preto Seminovo Muito Bom

ipad 2 Wi-Fi + 3G 16GB Branco Seminovo Bom

ipad 2 Wi-Fi + 3G 16GB Branco Seminovo Excelente

ipad 2 Wi-Fi + 3G 16GB Branco Seminovo Muito Bom

ipad 2 Wi-Fi + 4G 32GB Branco Seminovo Bom

ipad 2 Wi-Fi + 4G 32GB Branco Seminovo Excelente

ipad 2 Wi-Fi + 4G 32GB Branco Seminovo Muito Bom

];

For Ref, PFA. Now tell me what is the Issue? Make sure if anyone reply is useful please mark as Helpful. If you are happy that Close This Thread by Flag Correct Answer

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Hi Martin

               you can use below function to get desire o/p:

               subfield('Blackberry 9900Seminovo Bom', ' ' ,-1)