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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to use String.split function

Hi All
How to use String.split function in tmap expersion?
Regards
Kranthi
Labels (2)
10 Replies
Anonymous
Not applicable
Author

Hi, Folks.
I have a similar problem using Talend for Big Data v.5.6.1.
I have one file (for example: csv) with a duplicate ids, but others data diference.
The first step I have to do is to aggregate all records duplicate in only one record based on the id key.
id | no_unid_forn | no_uni_forn  | capacidade | sg_unid_medida
1  | item1           | CARTELA      | 10,00        |
1  | item1           | UNIDADE     | 1,00          |  UN
1  | item1           | CAIXA         | 7,00          |  CJ
2  | item2           | FRASCO       | 500,00       | ML
2  | item2           | UNIDADE     | 750,00       | UN
2  | item2           | LITRO          |  1000,00    | L
2  | item2           | CAIXA          | 12,00        | CJ
And I do this using the component tDenormalize and get the following result.
id | no_unid_forn | no_uni_forn                                    | capacidade                               | sg_unid_medida
1  | item1           | CARTELA ; UNIDADE ; CAIXA            | 10,00 ; 1,00 ; 7,00                     |   ; UN ; CX
2  | item2           | FRASCO ; UNIDADE ; LITRO ; CAIXA  | 500,00 ; 750,00 ; 1000,00 ; 12,00 | ML ; UN ; L ; CX
So, now I need to create a new_field with the composition of these fields (no_unid_forn, capacidade, sg_unid_medida) in order, like that:
id | no_unid_forn | new_field
1  | item1           | CARTELA (10,00 - ) ; UNIDADE (1,00 - UN) ; CAIXA (7,00 - CX)
2  | item2           | FRASCO (500,00 - ML) ; UNIDADE (750,00 - UN) ; LITRO (1000,00 - L) ; CAIXA (12,00 - CX)
How can I concatenate these fields (no_unid_forn, capacidade, sg_unid_medida) in order of occurrence?