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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Multiple Answers in one cell

I have multiple answers in a cell all separated by commas and I need to count how many are in the cell how do I count them ? I can't fix this in the excel spread sheet (part of the requirement). I have this problem for many rows.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

May be this

SubStringCount(FieldName, ',') + 1

View solution in original post

5 Replies
sunny_talwar

May be this

SubStringCount(FieldName, ',') + 1

Anonymous
Not applicable
Author

Thank you that was correct!

Anonymous
Not applicable
Author

What is the +1 for though?

sunny_talwar

My guess is that you will have one less separator (comma) than the actual values you are separating... so I am counting the number of commas and then adding 1 to it

Anonymous
Not applicable
Author

Wonderful I appreciate the help!