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: 
julioramos
Contributor II
Contributor II

FUNÇÃO AGGR() LIMITADA?

Bom dia Amigos(as),

Estou com um problema relacionado a função AGGR(), onde eu utilizo COUNT( IF( ) ) dentro dela, segue a função:

  • count({<SEXO>} aggr( if( (Count( {<SEXO>} [CNPJ])) >0 ,MUNICIPIO), MUNICIPIO))

  • A duvida é a seguinte, porque que o Set Analysis( {<SEXO>} ) não está bloqueando os filtros?
    • Será uma deficiência da função AGGR(), pelo fato de eu estar utilizando outras funções dentro dela?


OBS:


Deixo um .QVF de exemplo ilustrando a minha atual base.

No KPI "MUNICIPIOS QUE POSSUEM PRESTADOR" não deve ser alterado ao filtrar o SEXO e o KPI "MUNICIPIOS QUE POSSUEM BENEFICIARIOS" não deve ser alterado ao filtrar o TIPO_PRESTADOR.

Obrigado pela atenção.

Labels (3)
1 Solution

Accepted Solutions
sunny_talwar

Try this

Count({<SEXO>} aggr(if((Count({<SEXO>}[CNPJ]))>0, Only({<SEXO>} MUNICIPIO)),MUNICIPIO))

View solution in original post

2 Replies
sunny_talwar

Try this

Count({<SEXO>} aggr(if((Count({<SEXO>}[CNPJ]))>0, Only({<SEXO>} MUNICIPIO)),MUNICIPIO))

julioramos
Contributor II
Contributor II
Author

Thank you!!