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: 
richard_chilvers
Specialist
Specialist

String Aggregation Function for matching text

My data looks like:

Code, Description, Value

ABC, 20% discount , £100

ABC, 20% discount voucher, £200

ABC, 20% discount with money back, £140

DEF, another discount, £20

etc.

I have a straight table chart to aggregate (SUM) values by Code:

ABC £340

DEF £20

etc.

Is there a string function to show the first n matching characters in Description?

Eg. ABC, 20% discount, £340

12 Replies
maxgro
MVP
MVP

my attempt in the attachment

Not applicable

Try like below:

SubField( FieldDesc , ',',1) & ' ' & SubField( FieldDesc , ',',3)

richard_chilvers
Specialist
Specialist
Author

Hi Massimo

Thanks for taking the time to understand my requirement and come up with a solution

Regards