Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Contar após agrupar

Bom dia amigos,

Gostaria de saber como faço para contar agrupando no Qlikview. No Sql eu lembro que era algo assim Count(Distinct(<campo>)). Alguém pode me ajudar? Abraços.

1 Solution

Accepted Solutions
Not applicable
Author

AGGR(Count(Distinct NR_NOTA,CLIENTE)

Ou você pode fazer assim

Count(DISTINCT <CLIENTE >NR_NOTA)

View solution in original post

6 Replies
lucianosv
Specialist
Specialist

Bom dia.

Veja a função AGGR.

Anonymous
Not applicable
Author

Valeu Luciano. Abraços.

Not applicable
Author

AGGR(Count(Distinct NR_NOTA,CLIENTE)

Ou você pode fazer assim

Count(DISTINCT <CLIENTE >NR_NOTA)

Anonymous
Not applicable
Author

Obrigado Leonardo,

Resposta me fez entender como proceder com a lógica de prevalência no Qlikview. Abraços.

Luiz Carlos

lucianosv
Specialist
Specialist

Não faz isso. Elogiar o Léo é alimentar um monstro.

Abço pra vcs.

Not applicable
Author

ahhahahahahaha loucão vc hein luciano dsahdsausdhausadhsudah. É nois mlke