Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Bonjour,
Voici grosso-modo comment sont organisées mes données :
- pièces jointes.
Dans un tableau, j'ai mis en dimension "client", et en expression :
=avg(
aggr(
sum({<service = {'serv*'}>}ca)
,time)
)
Seulement le résultat est bon que si je sélectionne un client, lorsqu'il n'y a pas de sélection, ça calcul :
la moyenne (des sommes des CA par time disponible pour le client)
Par exemple, pour le client tata, ca vas calculer la moyenne (des sommes des CA présent dans les tranches horraires de tata, meme les CA de toto).
Voila je sais pas si je me suis bien fait comprend désolé, auriez vous une idée ?
Cordialement.
maybe you have to change the aggr, by time and client?
avg(
aggr(
sum({<service = {'serv*'}>}ca)
,time,client)
)
maybe you have to change the aggr, by time and client?
avg(
aggr(
sum({<service = {'serv*'}>}ca)
,time,client)
)
Thanks that's it. But i don't understant why we have to put client in the aggr if he already is in the dimension.
Bonjour,
Il faut considérer que la fonction aggr() fabrique un table temporaire.
Il faut donc que le colonnes utilisées comme dimensions soit présentes dans cette "table"
Tu peux aller voir le billet suivant de John Witherspoon :
http://community.qlik.com/thread/38796
Cordialement.
d'accord, super explication merci bien.