Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
WeePecky
Contributor III
Contributor III

QLIK Sense Expression

Hi,

I have data that looks simiilar to this:

ID Name
1  George

2 George

3 George

4 Henry

5 Henry

6 Fred

7 Fred

8 Fred

9 Fred

I need to calculate a kpi that counts the number of ID's with 3 or more names the same.

Any assistance greatly appreciated

Thanks

Labels (3)
2 Replies
JordyWegman
Partner - Master
Partner - Master

Hi WeePecky,

You need to aggregate this data in combination with an if before you can count it. Use this formula:

Sum(Aggr(IF(Count(Name)>=3,Count(Distinct Name)),Name))

Jordy

Climber

Work smarter, not harder
sunny_talwar

Another option is to do this

Count(DISTINCT {<Name = {"=Count(Name) >= 3"}>} ID)