Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can we concatinate String value table with integer value table

Hi Qv,


can we concatinate below two tables ,one table have sum of integer values another table value have string.

table1:

Dim1PRIOR WEEK DataPRIOR MONTH DATA
1012535
1025068
1031226
1043545

table2:

Dim2PRIOR WEEK DataPRIOR MONTH DATA
TIMELINEWK17WK13-WK17

 

output look like this.

 

DIM1PRIOR WEEK DATAPRIORMONTH DATA
TIMELINEWK17WK13-WK17
1012535
1025068
1031226

Thanks

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

See attached using

=if(NOT IsNum(maxstring(Week)), maxstring(Week), sum(Week))

-Rob

http://masterssummit.com

http://robwunderlich.com

View solution in original post

16 Replies
Anonymous
Not applicable
Author

Yes you can, give it a go !!

Not applicable
Author

Thax bill,

Can you pls elobarate more with example qvw I am unable to get the output like above

I have used Dimestion as Dim1  and expressions like sum(PRIORWEEKDATA),sum(PRIOR MONTHDATA) but unable successed .

swapnil_kumbhar
Partner - Contributor III
Partner - Contributor III

Yes you can.

PFA

Not applicable
Author

Hi,

TABLE1:

LOAD *

FROM table1.xlsx;

CONCATENATE (TABLE1)

LOAD *

FROM table2.xlsx;

Regards,
Marius

manideep78
Partner - Specialist
Partner - Specialist

Hi SwathiRaj P

Try this:

Table1:

LOAD * INLINE [

    Dim1, Week, Month

    101, 25, 35

    102, 50, 68

    103, 12, 26

    104, 35, 45

];

Table2:

Concatenate

LOAD Dim2 as Dim1,*;

LOAD * INLINE [

    Dim2, Week, Month

    Timeline, WK17, WK13-WK17

];

Drop Field Dim2;

It should work.

Hope this helps you.

Regards,

Manideep

Not applicable
Author

It should be fine in table box,.....can we get same output in straight table by using  expressions like sum(PRIORWEEKDATA),sum(PRIOR MONTHDATA) .

Thanks

Not applicable
Author

can we get same output in straight table instead of table box.

Not applicable
Author

ya, just concatenate in script

manideep78
Partner - Specialist
Partner - Specialist

PFA