Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to do a 'Contains' Formula

Hi

I have a list of customers.  However i want to create a chart/straight table showing only  customers containing  the word say , "Cars".

How do i do this.

Thanks

kind regards

Nayan

5 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You can use the set analysis to restrict the records.

     Your expression should look like below.

     Sum({<Customer_Name = {"*CARS*"}>}Sales)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hi Kaushik

Thanks.  Your formula above relates to a value ..."Sales".  Is there a way, without the value.  Can you do an if formula.

kind regards

Nayan

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Set Analysis works same like if statement at brief, and its very powerful then if statement.

     If statement in expression is not a best practice.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
rustyfishbones
Master II
Master II

Hi Nayan,

Checkout these videos on YouTube

IF WILDMATCH

http://youtu.be/GfEesthftk4

pick wildmatch

http://youtu.be/y4V0EDvzmj4

calvindk
Creator III
Creator III

Create "Calculated Dimension" and put:

IF(WildMatch(Customer, '*CARS*') = 1, Customer, NULL())

Now Suppress NULLS on dimension.