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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problema con dimension calculada

Hola tego el siguiente problema: Estoy intentando agregar una dimension a una tabla pivotante. La tabla tienen una columna socio y un importe segun sea el importe quiero clasificar dicho saldo como deudor si es mayor a 0 acredor si es menor a 0. La formula que utilizo es la siguiente:

=IF( SUM(m_importe) >= 1, 'deudor', 'acreedor' )

El problema que tengo es que la columna donde deberia aparecer la clasificacion me da error

Captura.PNG

Alguien puede orientarme sobre que estoy haciendo mal ?

1 Solution

Accepted Solutions
martin59
Specialist II
Specialist II

Hi,

I don't speak spanish but you can try this :

=IF( aggr(SUM(m_importe), nroCuenta, nombreSocio) >= 1, 'deudor', 'acreedor' )

Hope that helps you

Martin Favier

View solution in original post

4 Replies
martin59
Specialist II
Specialist II

Hi,

I don't speak spanish but you can try this :

=IF( aggr(SUM(m_importe), nroCuenta, nombreSocio) >= 1, 'deudor', 'acreedor' )

Hope that helps you

Martin Favier

alexandros17
Partner - Champion III
Partner - Champion III

The contition IF( SUM(m_importe) >= 1, 'deudor', 'acreedor' ) must be an expression not a dimension, aggr the condition by dimension, it had to work.

martin59
Specialist II
Specialist II

Hi,

I don't speak spanish but you can try this :

=IF( aggr(SUM(m_importe), nroCuenta, nombreSocio) >= 1, 'deudor', 'acreedor' )

Hope that helps you

Martin Favier

martin59
Specialist II
Specialist II

Hi,

I don't speak spanish but you can try this :

=IF( aggr(SUM(m_importe), nroCuenta, nombreSocio) >= 1, 'deudor', 'acreedor' )

Hope that helps you

Martin Favier