Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Creator III
Creator III

Concat on two generic fields

Hi experts

[0COSTCENTER] as [Acc. Cost Center ID],

[0COSTCENTER__TEXT] as [Acc. Cost Center Text],

[Acc.  Cost Center Text] & '' & [Acc. Cost Center ID] as [Acc. Cost Center],

The last line is not accepted, Qlik don't know this field. How can we solve this issue?

Thanks.

Tom

Labels (1)
1 Reply
Mauritz_SA
Partner - Specialist
Partner - Specialist

Hi Tom

When you reference a field in the script it should have the same name as in the source. The fields will only have their new names in the resulting (resident) table. In your case you should be able to use:

[0COSTCENTER] as [Acc. Cost Center ID],

[0COSTCENTER__TEXT] as [Acc. Cost Center Text],

[0COSTCENTER__TEXT] & [0COSTCENTER] as [Acc. Cost Center],

There is also not a need to add the '' unless you want to put a certain character in there like an underscore & '_' &.

Regards,

Mauritz