Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Does anyone know how to do this?
I need to group the repeated line as shown below.
FORNECEDOR | GRUPO | PRODUTO | VEICULO |
320 | 310 | 11 | CHEVR |
320 | 310 | 11 | FIAT |
320 | 310 | 13 | FORD |
to
FORNECEDOR | GRUPO | PRODUTO | VEICULO |
320 | 310 | 11 | CHEVR, FIAT |
320 | 310 | 13 | FORD |
LOAD
* INLINE [
FORNECEDOR, GRUPO, PRODUTO, VEICULO
320, 310, 11, FIAT
320, 310, 11, CHEVR
320, 310, 13, FORD
]
;
Hi,
you can create a straight table with dimension "Fornecedor", "Grupo" and "Produto"
create a expression:
CONCAT(VEICULO, ',');
Is there any way to do this function within the scipt?
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;
Beauty, solved the problem, thanks.
Please make sure you mark a correct answer so it closes the thread.
Thanks,
Jason