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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
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

16 Replies
Not applicable
Author

I did not successed in straight i have attached same here.

Thanks

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

sum() will turn your strings into zeros. So you'll need to conditionally test for the string in the expression like:

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

-Rob

http://masterssummit.com

http://robwunderlich.com

Anonymous
Not applicable
Author

Use the only function instead of the sum function in your Straight Table

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

martynlloyd
Partner - Creator III
Partner - Creator III

Hi, you may encounter problems sorting your text to the top of the table - for this you could use Dual Values:

...

Dual('TIMELINE', 0) as DIM1,

// or

Dual(DIM2,0) as DIM1

...

You will then be able to sort numerically.

Regards,

Marty.

Not applicable
Author

Thanku so much rob....can we make it as bold letters for Time Line row alone in that table,I tried to used the Custom format cell option but it should be applicable for whole table but i need only Time Line row.

Time Line WK17   WK13_WK17 
?

thank you

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

For each Dimension and Expression, press the + sign to access the attributes and use this expression for the "Text Format":

if(IsText(maxstring(Week)),'<B>')

-Rob