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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
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!

Labels (1)
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
Support
Support

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
Support
Support

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