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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

concatenate duplicate field.

Does anyone know how to do this?

I need to group the repeated line as shown below.

FORNECEDORGRUPOPRODUTOVEICULO
32031011CHEVR
32031011FIAT
32031013FORD

to

FORNECEDORGRUPOPRODUTOVEICULO
32031011CHEVR, FIAT
32031013FORD

 

LOAD

* INLINE [
FORNECEDOR, GRUPO, PRODUTO, VEICULO
320, 310, 11, FIAT
320, 310, 11, CHEVR
320, 310, 13, FORD
]

;

5 Replies
Not applicable
Author

Hi,

you can create a straight table with dimension "Fornecedor", "Grupo" and "Produto"

create a expression:

CONCAT(VEICULO, ',');

Anonymous
Not applicable
Author

Is there any way to do this function within the scipt?

Not applicable
Author

LOAD

          FORNECEDOR,

          GRUPO,

          PRODUTO,

          CONCAT(VEICULO, ',') AS VEIC

INLINE [

FORNECEDOR, GRUPO, PRODUTO, VEICULO

320, 310, 11, FIAT

320, 310, 11, CHEVR

320, 310, 13, FORD

]

GROUP BY           FORNECEDOR,

          GRUPO,

          PRODUTO;

Anonymous
Not applicable
Author

Beauty, solved the problem, thanks.

Jason_Michaelides
Partner - Master II
Partner - Master II

Please make sure you mark a correct answer so it closes the thread.

Thanks,

Jason