Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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 (1)
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.