Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate on several fields not work

Hi,

I have a question, i have two tables let's say table A and table B. Table A has 4 fields,

KEY          YEAR          WEEK          YWEEK

...     .          ....               ....               ....

Table B also has 4 fields like table A, i want to concate table A with table B. Field KEY and YWEEK from table B successfuly concate to table A, but FIeld YEAR and WEEK from table B not working. do you know the problem ? Really appreciate your help.

Thanks

UPDATE:

When i convert WEEK from table B using "NUM" function, the concate not working. But when i use WEEK as TEXT it's working. But i need to convert WEEK into number format.

Regards,

Indra

1 Solution

Accepted Solutions
PrashantSangle

Hi ,

Try like this

Table_A:

LOAD *[Field

KEY        

YEAR       

WEEK

YWEEK

];


Concatenate

LOAD *[Field

KEY       

YEAR       

Num(Num#(WEEK)) as WEEK,

YWEEK

];

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

19 Replies
miranrai
Contributor III
Contributor III

Hi,

If two tables are having same columns in both table then it will auto concatenate both table. Qlikview is case sensitive check your column names.

Not applicable
Author

Hi Mira,

Column name is same. Field WEEK on table A has number format, in the other side field WEEK on table B has text format. So i change WEEK on table B into number format using NUM function, the result is not working. but when i'm not convert WEEK on table B into number format (still text format) it's work. Can you give me the solution ?

Thanks

prabhas277
Creator
Creator

hi

give some sample data then that will help to you..

vardhancse
Specialist III
Specialist III

Table_A:

LOAD *[Field

KEY         

YEAR        

WEEK

YWEEK

];


Concatenate

LOAD *[Field

KEY        

YEAR        

WEEK

YWEEK

];


Now automatically the Table A and Table B will be concatenated based on the 4 fields.

Not applicable
Author

Hi Sasi,

I have try your solution, but it's not the problem.

Field WEEK on table A has number format, in the other side field WEEK on table B has text format. So i change WEEK on table B into number format using NUM function, the result is not working. but when i'm not convert WEEK on table B into number format (still text format) it's work. Can you give me the solution ?

Thanks

Not applicable
Author

Hi Indra,

Try like this

Table_A:

LOAD *[Field

KEY        

YEAR       

WEEK

YWEEK

];


Concatenate

LOAD *[Field

KEY       

YEAR       

Num(WEEK) as WEEK,

YWEEK

];


Not applicable
Author

Hi Harsha.

Thanks for the solution, but i have try your solution and it's not working

Another field (KEY, YEAR, YWEEK) sucessfully concate but week is not working and give the result - (stripe symbol)

Do you know the problem ?

Thanks

Not applicable
Author

I think it is creating NULL values(stripe symbols) because of Num(WEEK) ...

let me know the values of WEEK field in Table B.....

Generally NUM(WEEK(Timestamp)) will give you the corresponding numeric value for the given week...

Not applicable
Author

Values of week in Tabel B ex: 01, 02, 03,.... 10, 11, 12, ...., 52

I think the problem in on converting text to number.