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: 
Anonymous
Not applicable

Sumar valores de campo donde se cumpla una condicion

Hola buenas tardes.

Quiero sumar el valor de una campo solo donde se cumpla una condicion, estoy usando esta formula

=IF(Sum(Aggr(Sum(Venta),Marca))>Sum(Aggr(Sum({<Tipo={[Medios]}>} Inversion),Marca)),Num(Sum(Aggr(Sum(Venta),Marca)),'$#,##0'))

Pero esa expresion me devuelve el valor total de la venta y yo solo quiero ver reflejado el valor de la venta en aquellos casos donde sea mayor a la inversion en medios, es por eso que estoy utilizando el AGGR a nivel marca.

Alguien me puede ayudar? La formula la estoy utilizando en un objeto de texto

Gracias.

______________________________________________________________________________________

Hello Good evening,

I would like to add the value of a field when the condition is valid, I'm using the following formula:

=IF(Sum(Aggr(Sum(Venta),Marca))>Sum(Aggr(Sum({<Tipo={[Medios]}>} Inversion),Marca)),Num(Sum(Aggr(Sum(Venta),Marca)),'$#,##0'))

But that expression gives me the total value of the sell and I would like to see onlye the value of the sell in those cases where the investment in media is grater. And that why I'm using the AGGT at a brand level

Does somebody can help me? Im using the formula in a text object

Thank you

0 Replies