Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join this live chat April 6, 10AM EST - QlikView to Qlik Sense REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Stephane09
Contributor
Contributor

Aggr avec plusieurs dimensions

Bonjour,

A l'aide d'une dimension calculée, j'arrive à obtenir le top 3 des visiteurs de mon magasin: 

=if (aggr (rank(count (DATE)), NOM_CLIENT) <= 4, NOM_CLIENT, Null ())

Mon expression étant: count (DATE), j'obtiens un tableau avec le top 3 des visiteurs et leur nombre de visites.

Mais, je voudrais agréger en plus par le département. J'aimerais donc obtenir le top 3 des visiteurs pour chacun des départements. Je cherche à ajouter une 2ème agrégation ou une 2ème dimension mais je n'arrive pas à obtenir le résultat escompté ... 

Par exemple : 

=aggr (if (aggr (rank (count (DATE)), NOM_CLIENT) <= 4, NOM_CLIENT, Null ()), DEPARTEMENT)

 

Merci d'avance pour votre aide

1 Reply
Brett_Bleess
Support (Former)
Support (Former)

Best I have is the following Design Blog post that might get you on the right track, but I am not sure:

https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

You can use the following Design Blog link to further search that area yourself to see if you can find another post(s) that may be helpful, but hopefully the one above may give you some ideas to get things working as you wish.

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.