Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Table wild cards

Hi guys,

I have a table with a list of customer info, here are some examples:

Bob Bates

Sid Roberts

James Jones

Bob Smith

Ed Jacobs

How can I analyze this table and make a graph showing how many of each forename we have in the table? The graph would show I have 2 bobs, 1 sid, 1 james and 1 ed

Thanks!

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

By using Subfield function,

    

     SubField(Cust,' ',1) as FirstName

see the attach qvw.

Regards

Yigal

View solution in original post

5 Replies
Miguel_Angel_Baeyens

Hi,

Using

SubField(CustomerName, ' ', 1)

will return this first name. You can store this into a new field and use later on on a chart.

Hope that helps.

Miguel

Anonymous
Not applicable
Author

Where does that go? Graph or code?

Not applicable
Author

Hi,

By using Subfield function,

    

     SubField(Cust,' ',1) as FirstName

see the attach qvw.

Regards

Yigal

Miguel_Angel_Baeyens

Hi,

If possible, always in the script, in the LOAD part, creating a new field.

Hope that helps.

Miguel

Anonymous
Not applicable
Author

Thanks guys