Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
sculptorlv
Creator III
Creator III

How to concatinate

Hello again!

Please help to find adequate function. I need to do a concatenate in my Chart table.

I have two columns: a and b with the values ..

I need to get expression like this:

= 'a + b' = Text(a) + ' + ' Text(b) + ' = ' + Text(a +b)

Which function I have to use instead of Text and how can I make concatenation?

Thank you in advance.

1 Solution

Accepted Solutions
sunny_talwar

I think what if you try just this:

a & ' + ' & b

where & is used to concatenate here

View solution in original post

7 Replies
sunny_talwar

I think what if you try just this:

a & ' + ' & b

where & is used to concatenate here

awhitfield
Partner - Champion
Partner - Champion

Hi,

Check out string functions in the QV Help File.

HTH

Andy

sculptorlv
Creator III
Creator III
Author

Can you please tell me also, how to make Number format to x.xx and to x (integer)?


1.jpg


Thanks in advance!

sunny_talwar

Try Num() or Round function:

=Num(NumberField, '#,##0')

or

=Round(NumberField)

UPDATE: This number seems to be within a text? Is this the field where you are concatenating bunch of fields?

sculptorlv
Creator III
Creator III
Author

These are evaluated values .. like

sum(IF(InMonth(Bouth__PostingDate,Today(),-3),Bouth_Cofee_Item_Money,0))

sunny_talwar

Then this:

Num(Sum(If(InMonth(Bouth__PostingDate,Today(),-3),Bouth_Cofee_Item_Money,0)), '#,##0')

or

Round(Sum(If(InMonth(Bouth__PostingDate,Today(),-3),Bouth_Cofee_Item_Money,0)))

sculptorlv
Creator III
Creator III
Author

Thank.

That works perfect.