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: 
Mahamed_Qlik
Specialist
Specialist

Aggr without selecting dimension

Hi 

In below table I have same Name with multiple same ID's

Name ID
Industry 1
Industry 1
Industry 1
Hotel 2
Hotel 2
Hospital 3

 

I want to show KPI wherein it should display the count of Name with same ID more than 1.
result should be "2" because Industry and hotel has same ID more than 1 so count of such Name will be 2.

I have used below expresssion but it is working only on selecting any Name, I want it should display by default.
=if(aggr(count(ID),Name)>1,count(Name))


Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

Hi,

Try it this way?

=Count(If(Aggr(count(ID),Name)>1,Name))

View solution in original post

3 Replies
BrunPierre
Partner - Master
Partner - Master

Hi,

Try it this way?

=Count(If(Aggr(count(ID),Name)>1,Name))

Mahamed_Qlik
Specialist
Specialist
Author

It works.
Thanks much.

MarcoWedel

another solution might be

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