Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

aide sur count et sum imbriqué

bonjour,

dans une expression je voudrais compter le nombre de [Date évenement] si la somme du [Montant réalisé assiduité] pour l'année sélectionnée est inférieur à 10

voilà la formule mais ça ne fonctionne pas, merci pour le coup de main

count(aggr(Sum({$<Année={$(=Max(Année))}>}  [Montant réalisé assiduité])<10, [Code entreprise]} [Date évenement])

Labels (1)
1 Solution

Accepted Solutions
flochi75
Creator III
Creator III

bonjour Jacky,

peux tu clore cette demande ?

Merci.

Florent.

View solution in original post

16 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Could you share your document please?

Not applicable
Author

sorry but too many data

but here an example of data

   

AnnéeDate évenement
Montant réalisé assiduité
Code enteprise
201412/06/20146052
201413/06/20143063
201505/02/201512063
201524/08/2015056
201515/05/20155063
alexandros17
Partner - Champion III
Partner - Champion III

Try thie:

Sum(If(Aggr(NODISTINCT Sum({$<Année={$(=Max(Année))}>}  [Montantréaliséassiduité]), Codeenteprise)<10, 1, 0))

Not applicable
Author

sorry but not ok

alexandros17
Partner - Champion III
Partner - Champion III

I tested with the data you gave and the result seems correct, that is 1, let me know what value do you expect?

Not applicable
Author

the result is 1 with this data

I join my files

alexandros17
Partner - Champion III
Partner - Champion III

take a look at this:

Not applicable
Author

it's OK now

an error with [Code entreprise]

thks a lot of

alexandros17
Partner - Champion III
Partner - Champion III

You're welcome,

could you please mark the answer and close the discussion?

Thanks