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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
slondono
Partner - Creator II
Partner - Creator II

concatenate a ';' in a variable

Hi experts,

Im having a problem when put ';' in a variable.

Try this please

Let var = 'home'&';'&'dog';

trace var $(var);

Im expecting the string 'home;dog' but there is an error that i dont understand

please. hope you can help me

1 Solution

Accepted Solutions
cristianozilz
Partner - Contributor III
Partner - Contributor III

The Problem is not in LET command. It's happen when you use Trace.

If you comment the "trace" command and show de variable "var" in a text object you'll see that's is OK.

This happends because the "trace" command understand ';' like a end of command.

View solution in original post

5 Replies
Anonymous
Not applicable

use set instead of let

if home and dog should be dynamic use dollar sign expansion together with further variables...

oscar_ortiz
Partner - Specialist
Partner - Specialist

You can try:

Let var = 'home'& CHR(059) &'dog';


Good luck

Oscar

Anil_Babu_Samineni

Why You need this in Variable? Can you try direct

Trace "'home'&';'&'dog'";

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
cristianozilz
Partner - Contributor III
Partner - Contributor III

The Problem is not in LET command. It's happen when you use Trace.

If you comment the "trace" command and show de variable "var" in a text object you'll see that's is OK.

This happends because the "trace" command understand ';' like a end of command.

oscar_ortiz
Partner - Specialist
Partner - Specialist

Sebastian,

If you've found the advice helpful or correct please close this post.

Qlik Community Tip: Marking Replies as Correct or Helpful

Thanks

Oscar