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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I merge 2 fields to create a list object

Hi

I have 2 fields in a table that I want to merge together so that it can be used as a list object.

I know how to do this with dates i.e. month & year but I cannot get it to work with the fields below.

I have the following in my script:

ApplyMap ('SupplierMap', StockSupplier, 'unknown') as SupplierName,

StockSupplier as SupplierCode,

I want to be able to merge SupplierName and SupplierCode as Supplier so I can select this as a list object meaning I can make multiple selections.

Any help greatly appreciated.

Steve

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hey,

You can do it in the list box properties. By calculating as expression instead of taking a direct column.

expression = suppliercode&' '&Supplerdescription.

Hope this helps.

Best regards,

Chinna

View solution in original post

6 Replies
mato32188
Specialist
Specialist

ApplyMap('SupplierMap', StockSupplier, 'unknown') & StockSupplier as Supplier

ECG line chart is the most important visualization in your life.
Anonymous
Not applicable
Author

Hi

Below is the Expression

=ValueList($(=concat({1} distinct chr(39) & Col1 & Chr(39),',')),$(=concat({1} distinct chr(39) & Col2 & Chr(39),',')),$(=concat({1} distinct chr(39) & Col3 & Chr(39),',')))

where Col1,Col2,Col3 are column names

Regards

Harsha

jyothish8807
Master II
Master II

Hi Steven

In script try like this:

ApplyMap ('SupplierMap', StockSupplier, 'unknown') & StockSupplier as Supplier

Regards

KC

Best Regards,
KC
Anonymous
Not applicable
Author

Hey,

You can do it in the list box properties. By calculating as expression instead of taking a direct column.

expression = suppliercode&' '&Supplerdescription.

Hope this helps.

Best regards,

Chinna

Not applicable
Author

Thanks, this has kind of given me what I want but it has broken the rest of the charts in the process.

Not applicable
Author

This has worked a treat, thanks. Just need to tidy up the data a bit.