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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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.

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