Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenation / Set Analysis Help

Hello all,

I am trying to concatenate several values together based on a different value which I assume requires the use of set analysis and I can't get the syntax correct.  Example:

"Field 1" & " " & "Field 2" where Field 3 = "USA"

In this case, Field 3 = "USA" will only return 1 value and I'm trying to place this expression in a text object as a label.

Thanks in advance.

1 Solution

Accepted Solutions
venkatg6759
Creator III
Creator III

Concat(Distinct{$<Field3={'USA'}>}Field 1& ' '& Field 2)

View solution in original post

2 Replies
venkatg6759
Creator III
Creator III

Concat(Distinct{$<Field3={'USA'}>}Field 1& ' '& Field 2)

maxgro
MVP
MVP

when there is space in field name, use "field name" or [field name]

for field value USA, without spaces, you can use USA or 'USA' or "USA"

concat(Distinct{$<[Field 3] ={USA}>} [Field 1] & ' ' & [Field 2] )