Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Want to change a text property of a text box to include the sum of a column

Hi, I have a text object and I would like it to say 'Total:' and then the sum of a column I have, like Sales. How can I have 'Total:' then followed by the SUM(Sales)?

Thanks!

1 Solution

Accepted Solutions
ecolomer
Master II
Master II

For your example:

='Total .: '&Num(Sum(Sales),'#.##0,00')

Is possible the format are diferent

Saludos,

Enrique Colomer

View solution in original post

6 Replies
ecolomer
Master II
Master II

Here you have an example:

=Num(Sum(if(TipoDocumento='Factura' AND [Año Documento]=$(AnyoActual), [Importe linea],if(TipoDocumento='Abono'   AND [Año Documento]=$(AnyoActual), [Importe linea],0))),'#.##0,00 €')

Another example:

='Días Transcurridos = '&Num(ReloadTime()-MakeDate($(AnyoActual),01,01),'#.##0 días')

ecolomer
Master II
Master II

For your example:

='Total .: '&Num(Sum(Sales),'#.##0,00')

Is possible the format are diferent

Saludos,

Enrique Colomer

Not applicable
Author

Perfecto!

Not applicable
Author

I mean perfecto here!

ecolomer
Master II
Master II

TX

GRACIAS

aveeeeeee7en
Specialist III
Specialist III

Hi David

You just have to use '&' inbetween your Total and Sum expression. See the example:

'Total : '&SUM(Sales)

Regards

Aviral Nag