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: 
frfr
Contributor
Contributor

SUM IF/ COUNT IF Problem

Hello, I hope the question was not asked already, but so far I have not found a answer to my problem. (But I have to admit that I am a complete qlik beginner)

Here a selcection of the columns that I have in a table (the actual table is much bigger but has company sensitive data):

ProjectTeammemberTeamsize
ATick3
ATrick3
ATrack3
BPeter1
CColin2
CCaro2
DDaisy1
EErwin1
FBart4
FLisa4
FMeggy4
FHomer4
GLeia1

 

What I want to do: I want to have a formula for a KPR, that gives me the average teamsize of teams with more than 1 teammembers. It is easy maths, but I don't know how to do the formula in qlik. (Especially because every team must only be counted once, although it appears multiple times in the list...)

Thanks in advance, I really appreciate your help!

Labels (4)
1 Solution

Accepted Solutions
agigliotti
Partner - Champion
Partner - Champion

maybe this:

avg( aggr( if( count(Teammember) > 1, Teamsize ), Project ) )

I hope it helps.

View solution in original post

1 Reply
agigliotti
Partner - Champion
Partner - Champion

maybe this:

avg( aggr( if( count(Teammember) > 1, Teamsize ), Project ) )

I hope it helps.