Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

dimension with conditions

Hello!.

I need aggregate one expression a one dimensional. This does not have to show projects with cant = 0

Proyectos.png

the column Cant. has the expression:

count({<EstadoVigente = {1}, Estado = {'PROMESADA','BLOQUEADA'}>}SuperficieVivienda)

and the dimensional is:

Proyecto

The table has to show alone two rows:

Proyecto 3 and Proyecto 4

You help me please!

Thanks

1 Solution

Accepted Solutions
sunny_talwar

You can probably use a calculated dimension here and replace Proyecto with

Aggr(If(count({<EstadoVigente = {1}, Estado = {'PROMESADA','BLOQUEADA'}>}SuperficieVivienda) <> 0, Proyecto), Proyecto)

and remember to check 'Suppress When Value Is Null' on the dimensions tab.

Or you can use a if statement to make sure all the other expressions are 0 or null where Cant. is 0.

If([Cant.] <> 0, Expression2)

If([Cant.] <> 0, Expression3)

and so on....

View solution in original post

2 Replies
sunny_talwar

You can probably use a calculated dimension here and replace Proyecto with

Aggr(If(count({<EstadoVigente = {1}, Estado = {'PROMESADA','BLOQUEADA'}>}SuperficieVivienda) <> 0, Proyecto), Proyecto)

and remember to check 'Suppress When Value Is Null' on the dimensions tab.

Or you can use a if statement to make sure all the other expressions are 0 or null where Cant. is 0.

If([Cant.] <> 0, Expression2)

If([Cant.] <> 0, Expression3)

and so on....

Not applicable
Author

Perfect!! thanks you very much