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: 
Not applicable

Method to Join Three Fields Values into One

Hi, I want to join three fields values into one field. Please check the sample

9 Replies
its_anandrjs
Champion III
Champion III

Hi,

For which three field you are asking about it is this

Branch1 Sale

Branch2 Sale

Branch 3 Sale

Thanks & Regards

Not applicable
Author

Branches(Branch1, Branch2, Branch3) Description(Branch1, Branch2, Branch3) Sale(Branch1, Branch2, Branch3) 1 Wind 2,800,000.00 2 Air 1,000,000.00 3 xxx 0.00 4 xxx 0.00 5 Renewable 2,750,000.00 6 xxx 0.00 7 xxx 0.00 8 xxx 0.00 9 xxx 0.00 10 Textile 2,000,000.00 99 Others 450,000.00 Total Sale 9,000,000.00

Not applicable
Author

I need in this manner

Not applicable
Author

in a way Yes, want to club these three fields sale but branches wise.

its_anandrjs
Champion III
Champion III

Hi,

Ok load your tables in three parts and concatenate this tables and do aggregation in another table and load this table like

A:

LOAD Customer,

     Branch1 as Branches,

     [Branch1 Desc] AS Description,

     //[Branch1 %],

     [Branch1 Sale] AS Sale

    FROM

(ooxml, embedded labels, table is Sheet1);

Concatenate

Load

     Customer,

  Branch2 AS Branches,

     [Branch2 Desc] AS Description,

     //[Branch2 %],

     [Branch2 Sale] AS Sale

     From

(ooxml, embedded labels, table is Sheet1);

Concatenate

load

     Customer,

     Branch3 as Branches,

     [Branch3 Desc] AS Description,

     //Branch3%,

     [Branch 3 Sale] AS Sale

     //[Sale Year 2014]

FROM

(ooxml, embedded labels, table is Sheet1);

NoConcatenate

Temp:

load

*,

RecNo() as Rowid

Resident A;

Left Join

LOAD

sum(Sale) as Sale

Resident Temp

Group by Description;

DROP Table A;

Hope this helps

Thanks & Regards

Not applicable
Author

Or already use the concatenate function in excel (CONCATENATE( text1, text2, ... text_n )) and add it as a new field to your source (probably easier).You won't have to edit your script much in this case..

Not applicable
Author

please find my data structure,

if I do this thing, nothing works.

and if I don't concatenate and form three tables, it forms a circular loop.

Not applicable
Author

sorry but I didn't got your answer

Not applicable
Author

FYR